Check value of cell with column and return sum of values of previous column for which the values are same

StackOverflow https://stackoverflow.com/questions/23679036

  •  23-07-2023
  •  | 
  •  

문제

After checking if a cell value exists in a column, I need to get the sum of all the values of the cell next to the matching cell. For instance, I check if the value in cell A1 exists in column B, and assuming it matches B5,B7 and B9 then I want the sum of values in cell C5,C7 and C9.

도움이 되었습니까?

해결책

Assuming that you use Microsoft Excel you have to use SUMIF function:

=SUMIF(B1:B9,A1,C1:C9)

Of course, according to your language version and regional settings above function can have localized name and instead of commas there might be semicolons required.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top