Excel function

ISERRfunction

Checks whether a value is an error other than #N/A.

All versions
=ISERR(A7)
A
B
C
1
2
3
4
5
6
7
8
9
10

Click a cell in the table to change value. #N/A in A6 is FALSE and #DIV/0! in A7 is TRUE. Compare with ISERROR. Try breaking it on purpose to see the errors.

Result

TRUE

value
A7You can also click a cell in the table

The cell to test. Click another value in column A.

What is the ISERR function?

=ISERR(value)

ISERR tests whether a value is any error value except #N/A. It is most often used inside IF to treat values differently by kind.

Column A of the sheet mixes text, numbers, a blank, a logical value, errors and text that looks like a number; column B says what each is. Column C shows the same formula copied down.

ISERR lets you keep #N/A from lookups as a normal "not found" result while flagging real problems such as #DIV/0! or a broken #REF!. In conditional formatting it highlights only the cells with errors other than #N/A.

Arguments

value
The value or cell to test.

ISERR examples

  1. Example 1. Division error

    =ISERR(A7)

    #DIV/0!, so TRUE.

  2. Example 2. #N/A is excluded

    =ISERR(A6)

    #N/A, so FALSE.

  3. Example 3. Result for each kind of value

    =ISERR(A2)

    Only #N/A gives FALSE, which is the difference from ISERROR.

    Value in column A=ISERR(A2)
    AppleFALSE
    120FALSE
    (blank)FALSE
    TRUEFALSE
    #N/AFALSE
    #DIV/0!TRUE
    "120" (text)FALSE
  4. Example 4. Count errors other than #N/A

    =SUMPRODUCT(--ISERR(B2:B100))

    In a column of lookup results, counts the real errors and leaves out "not found".

Common mistakes

FAQ

When would I exclude #N/A?
When a lookup's "not found" (#N/A) is normal and you only want to catch other errors.
How do I replace an error with another value?
Use IFERROR.
How do I replace only #N/A?
Use IFNA. =IFNA(VLOOKUP(…), "None") leaves other errors visible.