Numbers Exercises

SUMIF in Apple Numbers

Last updated:

Short answer: SUMIF adds up what meets a condition. Syntax: 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.

Table 1
ABC
1ProductPriceQty
2Apple410
3Pear65
4Kiwi122
5Grape83

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