IFERROR Function

Return value

Returns the second argument if the first argument contains an error. Returns the first argument if no error is found.

Syntax

= IFERROR(value; value_if_error)

Arguments

Argument Description
value The Formula or Reference to a Formula where error messages are to be replaced.
value_if_error Return value if an Excel error message is found.

Remarks

IFERROR can be used to clean up error messages. Error messages can for instance occur when Lookup and Range Functions finds no values (#N/A) or from division with zero (#DIV/0!).