Use SUMIFS to test multiple conditions and return a value based on those conditions. For example, you could use SUMIFS to sum the number of a products sold by a certain salesperson.
Syntax
SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
-
=SUMIFS(A3:A10,B3:B:10,B13,C3:C10,A13)
-
Sum the values in the cell A3 to A10 for the rows where the value in B3 to B10 is B13, and the value in C3 to C10 is A13.
Steps
-
Select a cell.
-
Type =SUMIFS, and a left parenthesis (.
-
Select the sum range, and type a comma.
-
Select the first criteria range, and type a comma.
-
Select the criteria, and type a comma.
-
Select the second criteria range, and type a comma.
-
Select the criteria, and type a comma.
-
Press Enter.
Source: Microsoft