Category: FUNCTION | Updated: 2026-11-22
How to Use the SUMIFS Function in Google Sheets | Sum Numbers Meeting Multiple Criteria
How to Use the SUMIFS Function
The SUMIFS function is a math function that filters rows meeting all specified criteria (AND conditions) and sums the corresponding numeric values.
Syntax
=SUMIFS(sum_range, criteria_range1, criterion1, [criteria_range2, criterion2, ...])
- sum_range: The cell range containing the numbers to sum (required; 1st argument).
- criteria_range1: The first cell range to evaluate (required).
- criterion1: The search criterion for
criteria_range1(required). - criteria_range2, criterion2, …: Additional pairs of criteria ranges and criteria (optional).
Table Example
Here is an example of calculating total sales for rows where "Department is Sales" and "Status is Confirmed" from the departmental sales data below.
| Row | Column A (Department) | Column B (Status) | Column C (Sales Amount) |
|---|---|---|---|
| 1 | Department | Status | Sales Amount |
| 2 | Sales | Confirmed | 300,000 |
| 3 | Planning | Confirmed | 150,000 |
| 4 | Sales | Pipeline | 200,000 |
| 5 | Sales | Confirmed | 450,000 |
| 6 | Engineering | Confirmed | 100,000 |
- Formula:
=SUMIFS(C2:C6, A2:A6, "Sales", B2:B6, "Confirmed") - Result:
750,000(300,000 + 450,000)
Common Errors and Notes
- Putting
criteria_rangein the 1st argument: If you put a criteria range first out of habit fromSUMIF,SUMIFSwill try to sum text (returning0) or throw a#VALUE!error due to range size mismatch. Always putsum_rangefirst. - Mismatched range sizes (
#VALUE!):sum_rangeand everycriteria_rangemust have the exact same number of rows and columns. Being off by even one row causes a#VALUE!error. - Using blank cells as a criterion: Specify
""to sum rows where a cell is blank, or"<>"to sum rows where a cell is not blank.
Frequently Asked Questions
Q. What is the biggest difference between SUMIF and SUMIFS?
A. Aside from supporting multiple criteria instead of one, the position of "sum_range" differs. SUMIF places sum_range at the end, whereas SUMIFS places sum_range as the 1st argument (at the very beginning).
Q. Is it okay to use SUMIFS even when I only have one condition?
A. Yes, that is completely fine. If there is a chance you will add more conditions later, starting with SUMIFS makes it much easier to update the formula.