The SUMIFS function in Google Sheets is a powerful tool designed to sum up a range of values based on multiple specified criteria. This function is particularly useful for analyzing large datasets where conditions need to be met to obtain a precise total. By utilizing SUMIFS, users can efficiently filter and aggregate data according to their needs.
Syntax
SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2, ...])
- sum_range: The range of cells to sum.
- criteria_range1: The first range to evaluate the associated criteria.
- criteria1: The criteria for the first range that must be met to include the sum.
- [criteria_range2, criteria2]: Optional additional ranges and criteria pairs to refine the sum further.
Example #1
SUMIFS(B2:B10, A2:A10, "Sales", C2:C10, ">=100")
This function sums the values in the range B2:B10, including only those corresponding to ‘Sales’ in A2:A10 and with values of 100 or more in C2:C10. For example, if the total is $500 based on such criteria, that is what would be returned.
Example #2
SUMIFS(D2:D20, E2:E20, "North", F2:F20, "Q1")
This formula sums amounts in D2:D20 where the region in E2:E20 is ‘North’ and the quarter in F2:F20 is ‘Q1’. If the result totals $300, this value would be displayed as output.
Example #3
SUMIFS(H2:H50, I2:I50, "Active", J2:J50, "<>0")
Here, the function sums values in H2:H50 where the status in I2:I50 is ‘Active’ and the entries in J2:J50 are not zero. If this resulted in $150, that would be shown as the result.
Error handling
- VALUE!: Indicates that a non-numeric value has been provided as one of the parameters where a number is expected. Ensure that the ranges contain numeric data.
- REF!: Occurs when a reference is invalid. This can happen if the referenced ranges have been deleted. Verify that all ranges specified are intact.
- N/A: Suggests that a function is not able to find a reference. It usually arises if ranges and criteria do not align correctly. Check that the criteria refer to the right ranges.