Excel ISERROR Function

This tutorial demonstrates how to use the Excel ISERROR Function in Excel to test if a cell results in an error.

ISERROR Main

ISERROR Function Description:

The ISERROR Function Test if cell value is an error. Returns TRUE or FALSE.

To use the ISERROR Excel Worksheet Function, select a cell and type:
iserror formula syntax

(Notice how the formula inputs appear)

ISERROR Function Syntax and Inputs:

value – The test value

How to use the ISERROR Function

The ISERROR Function checks if a calculation results in an error.

ISERROR

IF ISERROR Replaced by IFERROR

Prior to Excel 2007, the ISERROR Function was commonly used along with the IF Function to output a second calculation if the first calculation resulted in an error.

IF ISERROR

However, in Excel 2007, the IFERROR Function was introduced, making the IF / ISERROR combo obsolete.

IFERROR

ISERR and ISNA

The ISERROR Function returns TRUE if any error occurs.

There are two other error checking “is” functions:

ISNA ISERR

Also, in addition to the IFERROR Function, there is the IFNA Function.

These functions are important because many formula errors are a result of bad formulas, but #N/A errors are often valid. For example, if you use the VLOOKUP Function and the lookup value is not found, the formula will return #N/A.

ISERROR Vlookup

By applying the IFNA Function to the VLOOKUP, you can handle valid #N/A errors, while not handling other formula errors (so you don’t overlook those other errors).

ISERROR Vlookup IFNA

Other Logical Functions

Excel / Google Sheets contain many other logical functions to perform other logical tests. Here is a list:

IF / IS Functions
iferror
iserror
isna
iserr
isblank
isnumber
istext
isnontext
isformula
islogical
isref
iseven
isodd

ISERROR in Google Sheets

The ISERROR Function works exactly the same in Google Sheets as in Excel:

ISERROR Google

ISERROR Examples in VBA

You can also use the ISERROR function in VBA. Type:
application.worksheetfunction.iserror(value)
For the function arguments (value, etc.), you can either enter them directly into the function, or define variables to use instead.

 

Lets assume we have the following values in our worksheet

 

Vba ISERROR function

 

We will issue the ISERROR function with VBA, for each of the above cells:

Return to the List of all Functions in Excel