ISERROR

The ISERROR function returns the boolean value TRUE if a given expression evaluates to an error and the boolean value FALSE otherwise.

ISERROR(any-expression)

any-expression: An expression to be tested. any-expression can contain any value.

Notes

Examples

If B1 is a number value and D1 evaluates to 0, then:

=IF(ISERROR(B1/D1), 0, B1/D1) returns 0 because division by zero results in an error.

=IFERROR(B1/D1, 0) is equivalent to the previous example, but requires only one function.

See also
IFERROR
ISBLANK