ERROR.TYPE

returns number corresponding to an error type · from excel · excel: not yet compared · sheets: not yet compared

signature

ERROR.TYPE(error_val)

returns: number

argumentrequired
error_val required

examples

formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.

fx =ERROR.TYPE(NA()) 7

errors

error values observed from the engine — each with a call that produces it.

errorproduced by
#N/A =ERROR.TYPE(2)

related

  • CELL information about a cell's formatting, location or contents
  • FORMULATEXT returns formula as a text string
  • INFO information about the operating environment
  • ISBLANK returns TRUE if value is blank
  • ISDATE true when a value can be read as a date
  • ISEMAIL true when text looks like an email address