IF in Apple Numbers
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”.
| A | B | C | |
|---|---|---|---|
| 1 | Product | Price | Qty |
| 2 | Apple | 4 | 10 |
| 3 | Pear | 6 | 5 |
| 4 | Kiwi | 12 | 2 |
| 5 | Grape | 8 | 3 |
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