Numbers Exercises

IF in Apple Numbers

Last updated:

Short answer: IF picks between two results. Syntax: IF(condition, if-true, if-false)

Explanation

IF picks between two results. First a condition like B4>10, then what to show if it is true and what if it is not. Put text in quotation marks.

When do you use IF?

Use IF when the result depends on a condition, such as a price above a limit, a pass or fail, or a status.

Syntax

IF(condition, if-true, if-false)

Example

Show “Expensive” if the price in B4 is higher than 10, otherwise “Cheap”.

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

Formula: =IF(B4>10,"Expensive","Cheap")
Result: Expensive

Another example

Show “Yes” if the quantity in C2 is greater than 5, otherwise “No”.

Formula: =IF(C2>5,"Yes","No")
Result: Yes

Watch out

Always put text results between quotation marks. Without them Numbers looks for a function or cell with that name.

Frequently asked questions

What does IF do in Apple Numbers?

IF picks between two results. First a condition like B4>10, then what to show if it is true and what if it is not. Put text in quotation marks.

What is the syntax of IF?

The syntax is IF(condition, if-true, if-false).

Can IF return more than two outcomes?

Yes, by putting one IF inside another IF or by combining conditions with AND and OR.

What does B4>10 mean?

It is a condition that is true when the value in B4 is greater than 10.

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