Excel function

ISNAfunction

Checks whether a value is the #N/A error.

All versions
=ISNA(A6)
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 TRUE; #DIV/0! in A7 is an error but FALSE. Try breaking it on purpose to see the errors.

Result

TRUE

value
A6You can also click a cell in the table

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

What is the ISNA function?

=ISNA(value)

ISNA returns TRUE only for the #N/A error. #N/A usually comes from VLOOKUP or MATCH when the lookup value is not found.

Other errors (#DIV/0!, #VALUE! and so on) return FALSE, so you can tell "not found" apart from "calculation went wrong".

Arguments

value
The value, cell or formula to test.

ISNA examples

  1. Example 1. Show lookup failures

    =IF(ISNA(MATCH(A2, list, 0)), "Missing", "Found")

    Checks whether A2 is in the list.

  2. Example 2. Replace only #N/A

    =IF(ISNA(VLOOKUP(A2, table, 2, FALSE)), "Not registered", VLOOKUP(A2, table, 2, FALSE))

    The approach used before IFNA existed.

  3. Example 3. Count them

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

    Counts the #N/A cells.

Common mistakes

FAQ

A shorter way?
IFNA(formula, value_if_na) combines IF and ISNA.
Is it the opposite of ISERR?
ISERR is TRUE for errors except #N/A, so on error values it gives the opposite result to ISNA.