SUMIF
Adds the numbers whose rows meet one condition.
- Add and count by condition
- Practised in 1 lesson
Worked example
D2=SUMIF(C2:C4,"Repair",B2:B4)
| Row | A | B | C | D |
|---|---|---|---|---|
| 1 | Job | Hours | Type | Repairs |
| 2 | J-1 | 3 | Repair | 5 |
| 3 | J-2 | 5 | Install | |
| 4 | J-3 | 2 | Repair |
The test comes first and the numbers last.
How to write it
=SUMIF(range, criteria, [sum_range])
range- The cells to test.
criteria- What to match, such as "Paid" or ">100".
sum_range- The numbers to add.
Try SUMIF yourself
Real tasks in a spreadsheet, checked on changed data. A free account saves your work and checks your answers.
Practise it freeWatch out for
- The two ranges should start and end on the same rows.
- SUMIFS puts the numbers first, so the order is different.