Syntax
| Parameter | Description |
|---|---|
| error_val | Parameter of the ERROR.TYPE function. |
Examples
Identify error type
=ERROR.TYPE(A1)
Custom error messages
=IFERROR(CHOOSE(ERROR.TYPE(A1),"Null error","Div by zero","Wrong type","Bad reference","Bad name","Bad number","N/A"), "No error")
Count specific errors
=SUMPRODUCT((ISERROR(A1:A100))*(ERROR.TYPE(A1:A100)=2)*1)
Common Errors
Returned when the argument is NOT an error — ERROR.TYPE returns #N/A for valid, non-error values. This is intentional.
Tips
1=#NULL!, 2=#DIV/0!, 3=#VALUE!, 4=#REF!, 5=#NAME?, 6=#NUM!, 7=#N/A, 8=#GETTING_DATA. Memorize 2 (div/0) and 7 (N/A) — they're the most common.
Counterintuitively, ERROR.TYPE errors (#N/A) when the input is fine. Wrap in IFERROR to handle both cases cleanly.
When ISERROR is TRUE but you don't know which error, ERROR.TYPE tells you the specific type without having to examine the cell manually.
Try ERROR.TYPE in Viztab
Import your data and use ERROR.TYPE with 370+ other formulas. No signup required.
Open Viztab