IFERROR in Apple Numbers
IFERROR(value, if-error)Explanation
IFERROR catches an error and shows your own text instead. VLOOKUP gives an error when the value is not in the table.
When do you use IFERROR?
Use IFERROR to replace an error with your own text or value, for example when a lookup value is missing.
Syntax
IFERROR(value, if-error)Example
Look up the price of “Mango”. Not in the list? Show “Not found”.
| A | B | C | |
|---|---|---|---|
| 1 | Product | Price | Qty |
| 2 | Apple | 4 | 10 |
| 3 | Pear | 6 | 5 |
| 4 | Kiwi | 12 | 2 |
| 5 | Grape | 8 | 3 |
Formula: =IFERROR(VLOOKUP("Mango",A2:C5,2,0),"Not found")
Result: Not found
Another example
Show 0 if the lookup value does not exist.
Formula: =IFERROR(VLOOKUP("Mango",A2:C5,3,0),0)
Result: 0
Watch out
IFERROR hides every error, including errors you would want to see. Use it only where you know what can go wrong.
Frequently asked questions
What does IFERROR do in Apple Numbers?
IFERROR catches an error and shows your own text instead. VLOOKUP gives an error when the value is not in the table.
What is the syntax of IFERROR?
The syntax is IFERROR(value, if-error).
What does IFERROR do?
IFERROR returns the first value unless it is an error. In that case it returns the second value.
When do I use IFERROR?
For example with VLOOKUP, where a missing lookup value causes an error.
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