Logical function

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])
valueThe formula or value to check.
value_if_errorOptional. 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
fx
Result: Not found
ABCDE
1SKUItemPriceFind SKU
2P-100Pens2P-300
3P-200Paper5
4P-300Ink15
5P-400Stapler12
6P-500Tape3

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

Related functions