SUMIFS adds up numbers only on the rows where every condition you give it is true. It is the workhorse for answering questions like “total West-region Widget sales” — add one criteria pair per condition and they combine with AND logic.
The example
A sales log. We want total West / Widget sales.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Rep | Region | Product | Amount |
| 2 | Ana | West | Widget | $120 |
| 3 | Ben | East | Widget | $90 |
| 4 | Cy | West | Gadget | $60 |
| 5 | Dot | West | Widget | $200 |
| 6 | Eve | South | Widget | $75 |
| 7 | Fin | West | Gadget | $40 |
| 8 | West / Widget total: | $320 |
The formula
The total is:
How it works
Read each pair as a filter that must pass:
- The sum range
D2:D7is what gets added — the amounts. - Pair 1,
B2:B7, "West", keeps only West rows. - Pair 2,
C2:C7, "Widget", further keeps only Widget rows. Both must be true. - Only Ana (120) and Dot (200) pass both filters →
$320.
Order matters in SUMIFS, not SUMIF. In SUMIFS the sum range comes first. In the older SUMIF it comes last. Mixing them up is the #1 cause of wrong totals.
Try it: interactive demo
Pick a region and product; the SUMIFS formula and total update against the log above.
Variations
Greater-than / date conditions
Criteria can be comparisons. West Widget sales over $100:
Criteria from a cell
Point criteria at input cells so the report is interactive:
OR logic (West OR East)
SUMIFS is AND-only. For OR, add two SUMIFS or use SUMPRODUCT:
Pitfalls & errors
Wrong total / $0. The sum range and every criteria range must be the same size and shape. D2:D7 with B2:B8 returns #VALUE! or a wrong figure.
SUMIF vs SUMIFS argument order. SUMIFS: sum range first. SUMIF: sum range last. They are not interchangeable.
Text vs numbers. A criterion of "100" (text) won’t match a real number 100 reliably; use ">="&100 style comparisons or ensure consistent types.
Practice workbook
Frequently asked questions
How do I use SUMIFS with two or more criteria?
What's the difference between SUMIF and SUMIFS?
How do I do OR logic with SUMIFS?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class