Google Sheets IFERROR function
Returns a fallback value when a formula results in an error, and the normal result otherwise.
Syntax
=IFERROR(value, [value_if_error])
value | The formula or value to check. |
|---|---|
value_if_error | Optional. What to show instead of an error (default blank). |
Try it
Edit the formula and the result updates instantly. Click a cell to add its reference.
Price list
Result: Not found
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | SKU | Item | Price | Find SKU | |
| 2 | P-100 | Pens | 2 | P-300 | |
| 3 | P-200 | Paper | 5 | ||
| 4 | P-300 | Ink | 15 | ||
| 5 | P-400 | Stapler | 12 | ||
| 6 | P-500 | Tape | 3 |
Examples
These use the sample sheet above.
→ Not found
The SKU doesn't exist, so you see a message instead of #N/A.
→ 0
Hides a #DIV/0! error.
Tips & common mistakes
- IFERROR hides every kind of error, including typos in your formula. Get the formula working first, then add IFERROR.