ERROR.TYPE (error type)

Navigation:  Formulas and functions > Functions from A to Z >

ERROR.TYPE (error type)

Previous pageReturn to chapter overviewNext page

Syntax:

ERROR.TYPE(cell)

Description:

This function can be used to query the type of error value in a cell.

As an argument, the function expects the address of the cell to be checked.

The function returns the following results:

Error value in cell

Result

No error value

#N/A

#NULL!

1

#DIV/0!

2

#VALUE!

3

#REF!

4

#NAME?

5

#NUM!

6

#N/A

7

For more information on error values, see Error values.

Example:

If A1 contains 1/0 and A2 contains 1/1, the following applies:

ERROR.TYPE(A1) returns 2 (thus #DIV/0!)

ERROR.TYPE(A2) returns #N/A (thus no error)

The following formula returns the text "Error!" if any error occurs in cell A1, otherwise the following value is returned to A1:

IF(ISNA(ERROR.TYPE(A1)), A1, "Error!")

See also:

ISERR, ISERROR, ISNA, NA(), IFERROR, IFNA, TYPE, section Error values