ISERR (Value) ISERR (Value)

Value

The value to check.

Returns

Logical Logical

Whether the given value is an error but is not an #N/A error ("not available").

Returns whether the given value is an error but is not an #N/A error ("not available"). ISERR ( NA ()) ISERR ( NA ()) returns FALSE. (The NA function returns an #N/A error.) However, ISERR (Value1 / Value2) ISERR (Value1 / Value2) returns TRUE when Value2 is 0 or blank, resulting in a #DIV/0! error ("division by zero").

Lookup functions like XLOOKUP return #N/A errors when a value cannot be found. The ISNA function may be used to detect the #N/A error specifically.

This formula returns TRUE, because the sought value, 10, is not part of the { 20, 30 }{ 20; 30 } lookup array given to XLOOKUP:

ISNA ( XLOOKUP (10, { 20, 30 }, { 200, 300 }))
ISNA ( XLOOKUP (10; { 20; 30 }; { 200; 300 }))

ISERR is the opposite of ISNA, meaning that it detects all errors except for #N/A errors. Consider this formula:

ISERR ( XLOOKUP (Value1 / Value2, { 20, 30 }, { 200, 300 }))
ISERR ( XLOOKUP (Value1 / Value2; { 20; 30 }; { 200; 300 }))

The preceding formula returns TRUE if Value2 is 0 or blank, resulting in a #DIV/0! error, but it returns FALSE if the value resulting from the Value1 / Value2Value1 / Value2 calculation cannot be found in the lookup array.

The ERROR.TYPE function can be used to determine the precise error type.

Examples

ISERR ( NA ())
ISERR ( NA ())

Returns FALSE. (The NA function returns an #N/A error.)

ISERR (Value1 / Value2)
ISERR (Value1 / Value2)

Returns TRUE when Value2 is 0 or a blank value, resulting in a #DIV/0! error ("division by zero").

ISERR ({ 4 / Value1, NA () })
ISERR ({ 4 / Value1; NA () })

Returns { TRUE, FALSE }{ TRUE; FALSE }, indicating that the first array element is a #DIV/0! error and the second array element is a #N/A error. ( Value1 must be 0 or blank in order for the first array element to be a #DIV/0! error.)

fxEngine Shell Want this in your own terminal? A standalone version is coming. Get notified.
Loading fxEngine Shell