Mathmedium
SUMIFS()
Returns the sum of a range depending on multiple criteria.
Syntax
fx
=SUMIFS(sum_range, criteria_range1, criterion1, ...)
Arguments
Try it
F2
→
90,600
Sample data · sales.csv
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Company | Region | Quarter | Revenue |
| 2 | Acme Co | West | Q1 | 18,400 |
| 3 | Acme Co | West | Q2 | 22,100 |
| 4 | Acme Co | West | Q3 | 31,700 |
| 5 | Acme Co | West | Q4 | 48,200 |
| 6 | Globex | East | Q1 | 14,200 |
| 7 | Globex | East | Q2 | 19,800 |
| 8 | Globex | East | Q3 | 23,400 |
Common pitfalls
- Argument order is the OPPOSITE of
SUMIF: sum_range comes first, then pairs of(criteria_range, criterion). - Each
criteria_rangemust be the same shape assum_range, otherwise you get#VALUE!. - Wildcards:
"*ab*"matches anything containing "ab". Use~to escape literal asterisks.
Related formulas
Used by