Excel SUMIFS
SUMIFS adds the numbers in one column, but only on rows where every condition you list is true.
A sales analyst gets the same request every Monday: revenue for one region, then one product inside that region, then only the larger orders. Filtering and reading the status bar works once, but the number is gone when the data changes. SUMIFS turns each of those questions into a formula that stays correct when new rows arrive.
Practice it nowHow to write it
=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)- sum_range
- The numbers to add.
- criteria_range1
- The column to test.
- criteria1
- The condition that column must meet.
- criteria_range2, criteria2
- Optional extra pairs. A row must pass all of them.
Watch it work
Examples
Total revenue for North
=SUMIFS(D2:D7,A2:A7,"North")8,900Three rows are North, so 4,200 + 2,100 + 2,600 are added.
North revenue from laptops only
=SUMIFS(D2:D7,A2:A7,"North",B2:B7,"Laptop")6,800The North phone row now fails the second condition.
Online orders above 3,000
=SUMIFS(D2:D7,C2:C7,"Online",D2:D7,">3000")7,300A column can be both the sum range and a test. Comparisons go inside quotes.
Your turn
Add up the revenue from laptops sold in a Store. Type your formula in F2.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Region | Product | Channel | Revenue | ||
| 2 | North | Laptop | Online | 4200 | ||
| 3 | South | Phone | Store | 1800 | ||
| 4 | North | Phone | Online | 2100 | ||
| 5 | West | Laptop | Store | 3900 | ||
| 6 | North | Laptop | Store | 2600 | ||
| 7 | South | Laptop | Online | 3100 | ||
| 8 |
Common mistakes
Putting the sum range last, as you would in SUMIF.
In SUMIFS the numbers always come first.
Ranges of different heights, such as D2:D7 with A2:A6.
Excel returns #VALUE!. Every range must cover the same rows.
Writing >3000 without quotes.
Comparison conditions are text, so write ">3000". To use a cell, write ">"&F1.
Good to know
- Put each condition in its own cell and refer to it, so one formula can power a whole summary table.
- All conditions are AND logic. For OR, add two SUMIFS together.
- SUMIFS or SUMIF? SUMIF handles exactly one condition and has its sum range last. SUMIFS handles one or many, so it is the safer habit.
Excelio