IFERROR
Shows your own result when a formula fails.
- Handle errors
- Practised in 1 lesson
Worked example
D2=IFERROR(B2/C2,"No count")
| Row | A | B | C | D |
|---|---|---|---|---|
| 1 | Crate | Kilos | Boxes | Each |
| 2 | K-1 | 84 | 7 | |
| 3 | K-2 | 60 | 0 |
Dividing by zero would show #DIV/0!. IFERROR explains instead.
How to write it
=IFERROR(value, value_if_error)
value- The formula to try.
value_if_error- What to show if it gives any error.
Try IFERROR yourself
The tasks for this function are part of Pro, which isn’t on sale yet. The lesson and its worked example are open to everyone.
See the lessonWatch out for
- It hides every error, including a misspelled function name.
- For a lookup that finds nothing, IFNA is safer.