SUMIFS
Sum values that meet multiple conditions at once with SUMIFS, Excel's multi-criteria addition function.
Spreadsheet editor
Spreadsheet editor
Syntax
=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2, ...])
Returns: Number Arguments
| Argument | Required | Description |
|---|---|---|
| Sum_range | Yes | The range of cells that you want to sum based on the provided criteria. |
| Criteria_range1 | Yes | The range of cells to be evaluated by the first criterion. |
| Criteria1 | Yes | The criterion or condition to be met in Criteria_range1. |
| Criteria_range2 | No | Additional range of cells for evaluating a second criterion. |
| Criteria2 | No | The criterion or condition to be met in Criteria_range2, and so on for additional ranges and criteria. |
| ... | No | Additional pairs of ranges and criteria can be added as needed. |
About
Use SUMIFS when SUMIF isn't enough because you need more than one filter. Common scenarios include totaling sales for a specific rep in a specific region, summing expenses for a category within a date range, or adding up orders above a dollar threshold from a particular customer.
For counting instead of summing, use COUNTIFS. For averages across multiple conditions, try AVERAGEIFS. SUMIFS uses AND logic, meaning every condition must be true for a row to be included. If you need OR logic, add two SUMIFS formulas together or use SUMPRODUCT.
Exercises using SUMIFS
Dynamic date range SUMIFS
IntermediateSum all sales from the last 30 days.
Open exerciseSUMIFS multiple criteria
IntermediateCalculate total sales for a specific region AND specific product category.
Open exerciseYear-over-year comparison
AdvancedCalculate % change comparing this month's sales to same month last year.
Open exerciseExamples
Wildcards in text criteria
Spreadsheet editor
OR logic with SUMIFS
Spreadsheet editor
Two conditions on the same column
Spreadsheet editor
Watch out for
Sum range position is different from SUMIF
In SUMIF, the sum range is the third argument. In SUMIFS, it comes first. Swapping the order causes wrong results or errors.
→ Always start SUMIFS with the range you want to sum, then list your criteria range/criteria pairs after it.
Criteria ranges must match the sum range in size
If your sum range is C2:C100 but a criteria range is A2:A50, Excel returns a #VALUE! error because the ranges don't have the same number of rows.
→ Make every criteria range the same shape and size as the sum range. If sum_range is 99 rows tall, each criteria range must also be 99 rows tall.
SUMIFS only uses AND logic
SUMIFS totals a row only when every condition is true at the same time. If you need rows where condition A or condition B is true, SUMIFS alone won't work.
→ For OR logic, add two SUMIFS results together: =SUMIFS(...condition A...) + SUMIFS(...condition B...). Use SUMPRODUCT for more complex OR scenarios.
Text criteria missing quotation marks
Writing =SUMIFS(C2:C10, A2:A10, North) without quotes tells Excel to look for a named range called North, not the text "North". This usually returns 0.
→ Wrap text criteria in double quotes: "North". To reference a cell, use a cell address directly without quotes: A1.