A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Use the SUMIF function to total values in column B only when the corresponding reference in column C equals 1010.
Assuming:
- Values are in B2:B175
- Reference numbers are in C2:C175
- 1010 is the reference to match
Enter this formula in the cell where the total is needed (for example, B176 or any empty cell):
=SUMIF(C2:C175,1010,B2:B175)
Explanation:
-
C2:C175is the range that contains the reference numbers. -
1010is the criteria (the reference number to match). -
B2:B175is the range of amounts to sum when the criteria is met.
This will add up only those B values whose corresponding C value is 1010 and ignore all others.
References: