SUMIF in Apple Numbers
SUMIF(test-range, condition, sum-range)Explanation
SUMIF adds up what meets a condition. The range you test can differ from the range you add.
When do you use SUMIF?
Use SUMIF to add up only the values of rows that meet a condition, such as the revenue of one product.
Syntax
SUMIF(test-range, condition, sum-range)Example
Add up the quantities of products with a price higher than 5.
| A | B | C | |
|---|---|---|---|
| 1 | Product | Price | Qty |
| 2 | Apple | 4 | 10 |
| 3 | Pear | 6 | 5 |
| 4 | Kiwi | 12 | 2 |
| 5 | Grape | 8 | 3 |
Formula: =SUMIF(B2:B5,">5",C2:C5)
Result: 10
Another example
Add up the quantities of products with a price below 8.
Formula: =SUMIF(B2:B5,"<8",C2:C5)
Result: 15
Watch out
The range you test and the range you add up must be the same size.
Frequently asked questions
What does SUMIF do in Apple Numbers?
SUMIF adds up what meets a condition. The range you test can differ from the range you add.
What is the syntax of SUMIF?
The syntax is SUMIF(test-range, condition, sum-range).
What is the difference between COUNTIF and SUMIF?
COUNTIF counts how many cells match. SUMIF adds up the values of those cells.
What if I leave out the third argument?
Then SUMIF adds up the cells of the tested range itself.
More in this category
Read more
Practise it yourself
Type the formula yourself in a real exercise and see right away if your answer is correct. The first exercises are free.
Start practising