- What does ERROR.TYPE return for a normal number or text value?
- ERROR.TYPE returns #N/A. The function only works on error values; if you pass a number, text, or successful formula result, it signals that the input is not an error by returning #N/A.
- How do I use ERROR.TYPE to respond differently to different error types?
- Wrap ERROR.TYPE in IF or SWITCH: =SWITCH(ERROR.TYPE(formula), 2, "Division by zero", 5, "Value not found", 6, "Broken reference", "Other error"). This lets you display custom messages for each error type.
- Can ERROR.TYPE identify #SPILL! or #CALC! errors?
- ERROR.TYPE returns numbers 1–7 for standard errors; #SPILL! and #CALC! are newer errors in some versions. If you encounter these, use ISERROR() to confirm they're errors, then inspect the cell to see the symbol directly.
- Why does ERROR.TYPE return #N/A when my formula is successful?
- ERROR.TYPE only returns numbers 1–7 when the input is an error; if the formula works without error, ERROR.TYPE returns #N/A to indicate "this is not an error." Use IFERROR to provide a fallback value instead.