Excel’s ERROR.TYPE() function returns a number corresponding to a specific error value.

In this tutorial:
  1. Syntax
  2. Example
See also:

1. Syntax

=ERROR.TYPE(error_val)

error_val can be the actual error value, though it will usually be a reference to a cell containing a formula you want to test.

Returns a number representing the type of error encountered.

If error_val isERROR.TYPE returns
#NULL!1
#DIV/0!2
#VALUE!3
#REF!4
#NAME?5
#NUM!6
#N/A7
#GETTING_DATA8
Anything else#N/A
Error types [1]

2. Example

Column A below contains deliberate errors. Column D uses the ERROR.TYPE() function to return the error code. Columns B and C contain the ISERR() and ISERROR() functions respectively as a comparison. Column E looks the error code up in the table to confirm the error.

Using Excel's ERROR.TYPE() function.Using Excel's ERROR.TYPE() function.

References:

  1. Microsoft Support. (no date) ERROR.TYPE function. Available at: https://support.microsoft.com/en-us/office/error-type-function-10958677-7c8d-44f7-ae77-b9a9ee6eefaa (Accessed: 29 May 2024).

By MisterFoxOnline

Mister Fox AKA @MisterFoxOnline is an ICT, IT and CAT Teacher who has just finished training as a Young Engineers instructor. He has a passion for technology and loves to find solutions to problems using the skills he has learned in the course of his IT career.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.