SUMIFS
Adds the numbers whose rows meet every condition.
- Add and count by condition
- Practised in 1 lesson
Worked example
D2=SUMIFS(C2:C5,A2:A5,"Red",B2:B5,"Large")
| Row | A | B | C | D |
|---|---|---|---|---|
| 1 | Colour | Size | Sales | Large red |
| 2 | Red | Large | 420 | 680 |
| 3 | Red | Small | 150 | |
| 4 | Blue | Large | 380 | |
| 5 | Red | Large | 260 |
Numbers first, then pairs of a column and what it must match.
How to write it
=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], …)
sum_range- The numbers to add.
criteria_range1- The first column to test.
criteria1- What that column must match.
criteria_range2, criteria2, …- More pairs. All must match.
Try SUMIFS yourself
The tasks for this function are part of Pro, which isn’t on sale yet. The lesson and its worked example are open to everyone.
See the lessonWatch out for
- Putting the numbers last, as in SUMIF, gives a wrong total or an error.
- Every range must be the same size.