1. Home
  2. Functions
  3. Information
  4. ERROR.TYPE

ERROR.TYPE function

Returns a number for the kind of error a value is (1 for #NULL!, 2 for #DIV/0!, 3 for #VALUE!...), or #N/A when it is not an error.

Syntax

=ERROR.TYPE(error_val)

Arguments

ArgumentRequiredDescription
error_valRequiredThe error value to identify

How to use ERROR.TYPE

ERROR.TYPE takes 1 required argument. Type =ERROR.TYPE( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=ERROR.TYPE(1/0)Result 2
=ERROR.TYPE(NA())Result 7
=ERROR.TYPE(5)Result #N/A

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.