SUMIFS with several conditions
Add up the sales for one team and one channel at a time.
SUMIFS takes the numbers to add first, then a pair of range and condition for each test.
Work out the total sales for each team and channel in G2:G4. Write one formula in G2 and copy it down.
Typing formulas is easiest on a computer with a keyboard.
| 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 |
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. To get a total for every team at once on your own data, the Summarize / Group By tool lists each group and writes theSUMIFSfor you.
Know someone fighting with a spreadsheet? Send them this page.