Google Sheets function

IFERROR function in Google Sheets

IFERROR in Google Sheets returns a fallback value when a formula produces an error and otherwise returns the formula result. Use it to replace expected lookup, division, or reference errors with a clear label, blank value, or alternate calculation result.

Source: Google Docs Editors HelpLast verified Nov 5, 2026

Syntax

=IFERROR(value, [value_if_error])

Arguments

ArgumentRequiredWhat it means
valueYesThe expression or value to return when it does not produce an error.
value_if_errorNoThe value returned when value produces an error. It is blank when omitted.

Examples

Handle division by zero

ABC
1ItemTotalUnits
2Sample120
=IFERROR(B2/C2,"Check units")

Result: Check units

The division produces an error because units is zero, so IFERROR returns the fallback text.

Common mistakes

Using IFERROR to hide an error that should be corrected.

Confirm the error is an expected case before replacing it with a fallback.

Putting the fallback value before the expression to test.

Place the expression first and the fallback value second.