1. Home
  2. Functions
  3. Logical
  4. IFERROR

IFERROR function

Returns a value of your choice when a formula gives an error, otherwise the formula result.

Syntax

=IFERROR(value, value_if_error)

Arguments

ArgumentRequiredDescription
valueRequiredThe value or formula to check
value_if_errorRequiredThe result to use instead of an error

How to use IFERROR

IFERROR takes 2 required arguments. Type =IFERROR( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=IFERROR(1/0, "none")Result "none"
=IFERROR(4/2, 0)Result 2

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.