SUMIFS with several conditions
1 / 7
SUMIFS adds up the rows that match several things. Here, one team and one channel.
keyboard Typing formulas is easiest on a computer with a keyboard.
A1
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Team | Channel | Sales | Team | Channel | Total | ||
| 2 | North | Online | 410 | West | Shop | |||
| 3 | North | Online | 350 | South | Shop | |||
| 4 | South | Online | 470 | North | Online | |||
| 5 | South | Shop | 150 | |||||
| 6 | South | Online | 450 | |||||
| 7 | East | Shop | 300 | |||||
| 8 | North | Online | 480 | |||||
| 9 | West | Shop | 600 | |||||
| 10 | South | Shop | 180 | |||||
| 11 | West | Online | 470 | |||||
| 12 | South | Online | 130 | |||||
| 13 | North | Shop | 230 | |||||
| 14 | ||||||||
| 15 | ||||||||
| 16 | ||||||||
| 17 |
team and channel
totals
Type to enter a value or a formula starting with =. F2 edits, F4 adds $ to a reference.
How SUMIFS works
What does
SUMIFSdo?SUMIFSadds up the rows that match all of its conditions:=SUMIFS(what to add up,where to look 1, what to match 1, where to look 2, what to match 2, ...) What order do the parts go in?
- The range to add up comes first. (In
SUMIFit comes last, which is easy to mix up.) - Then come pairs: a range to check and what it must match. Add as many pairs as you need.
- The range to add up comes first. (In
Which rows get added?
A row is only added if it matches every pair. With one pair,
SUMIFSdoes the same asSUMIF, so many people useSUMIFSfor everything.
Know someone fighting with a spreadsheet? Send them this page.