ERROR.TYPE function in Excel
Returns a number corresponding to an error type
=ERROR.TYPE(error_val)ERROR.TYPE syntax and parameters
One argument, one required.
- error_valanyRequired
The error value whose identifying number you want to find. Although error_val can be the actual error value, it will usually be a reference to a cell containing a formula that you want to test.
ERROR.TYPE examples
Formulas you'll actually reuse.
Which error a lookup cell holds — 7 is #N/A, 2 is #DIV/0!, 3 is #VALUE!:
=ERROR.TYPE(F2)Result
7A readable label for whatever went wrong in F2:
=IF(ISERROR(F2), CHOOSE(ERROR.TYPE(F2), "Null", "Div by zero", "Value", "Ref", "Name", "Num", "Not found"), "OK")Result
"Not found"
ERROR.TYPE in Google Sheets
Same name — your formula ports as-is.
Try ERROR.TYPE in the playground
Edit the example — nothing to install.
Preloaded with the ERROR.TYPE formula from Example 1 — change anything and watch it respond.
ERROR.TYPE errors
What they mean — and the fixes.
#N/AThe referenced cell holds no error at all — guard with ISERROR before calling ERROR.TYPE.
Related functions
More ways Excel gets this done.
- CELLReturns information about the formatting, location, or contents of a cellThis function is not available in Excel for the web.InfoGoogle Sheets
- INFOReturns information about the current operating environmentThis function is not available in Excel for the web.InfoNo Google Sheets equivalent
- ISBLANKReturns TRUE if the value is blankInfoGoogle Sheets
- ISERRReturns TRUE if the value is any error value except #N/AInfoGoogle Sheets
- ISERRORReturns TRUE if the value is any error valueInfoGoogle Sheets
- ISEVENReturns TRUE if the number is evenInfoGoogle Sheets