How to use the Excel ERROR.TYPE function (2024)

Summary

The Excel ERROR.TYPE function is designed to identify the type of error in a cell, returning a numeric code corresponding to a specific error type. This function is particularly useful for error handling in formulas, allowing users to categorize errors and respond to them conditionally within their Excel models or reports.

Syntax
=ERROR.TYPE(error_val)
  • error_val: The error value or expression that potentially results in an error

Return value

A number from 1 to 8, representing different types of errors. If error_val does not correspond to an error, ERROR.TYPE returns #N/A.

How to use

To use ERROR.TYPE, input a cell reference or an expression that might result in an error. The function evaluates the input and returns a numeric code that represents the type of error, if any. These numeric codes correspond to the following error types:

  • 1: #NULL! – Intersect operator used incorrectly.
  • 2: #DIV/0! – Division by zero.
  • 3: #VALUE! – Wrong type of argument in a function.
  • 4: #REF! – Invalid cell reference.
  • 5: #NAME? – Excel doesn’t recognize text in a formula.
  • 6: #NUM! – Invalid numeric values in a formula or function.
  • 7: #N/A – Value not available to a function or formula.
  • 8: #GETTING_DATA – A placeholder for getting data from a remote source (less common).

This function can be combined with IF or other logical functions to handle errors gracefully in your calculations, allowing for custom error messages or alternative calculations when an error is detected.

Examples

Simple ERROR.TYPE

Identifying a Division by Zero Error: To check for and identify a division by zero error in a calculation.

=ERROR.TYPE(A1/B1)

If dividing A1 by B1 results in a division by zero error, ERROR.TYPE returns 2, as this is the code for #DIV/0! errors.

ERROR.TYPE for Invalid Cell Reference

Handling an Invalid Cell Reference Error: To detect an invalid cell reference error in your worksheet.

=ERROR.TYPE(A1)

Assuming A1 contains an invalid reference error (#REF!), ERROR.TYPE will return 4, the numeric code associated with #REF! errors.

ERROR.TYPE with IF Function

Creating Custom Error Messages: To display a custom message instead of an Excel error.

=IF(ISERROR(A1), "Error Detected: " & ERROR.TYPE(A1), A1)

This formula checks if A1 contains an error. If so, it displays “Error Detected: ” followed by the error type code. Otherwise, it simply shows the value of A1.

Additional Notes

  • ERROR.TYPE is a diagnostic tool rather than a corrective function. It identifies errors but does not fix them. Combining ERROR.TYPE with conditional logic can help manage how errors are presented in your data analysis or reporting workflows.

Related Functions

Content Navigation

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of all the cookies.

How to use the Excel ERROR.TYPE function (2024)
Top Articles
Can my parents stop me from leaving the house and take things away (like my computer) that they don't pay for? I'm 18
Plans and prices of NordVPN service
Enrique Espinosa Melendez Obituary
Gore Videos Uncensored
Top Financial Advisors in the U.S.
Blairsville Online Yard Sale
Melfme
Unlocking the Enigmatic Tonicamille: A Journey from Small Town to Social Media Stardom
Stream UFC Videos on Watch ESPN - ESPN
A.e.a.o.n.m.s
World Cup Soccer Wiki
Chastity Brainwash
Evangeline Downs Racetrack Entries
Alaska: Lockruf der Wildnis
Calmspirits Clapper
Nwi Arrests Lake County
Teenleaks Discord
Find Such That The Following Matrix Is Singular.
Nick Pulos Height, Age, Net Worth, Girlfriend, Stunt Actor
Accuweather Mold Count
1989 Chevy Caprice For Sale Craigslist
Ups Print Store Near Me
The Weather Channel Local Weather Forecast
Talk To Me Showtimes Near Marcus Valley Grand Cinema
Gina Wilson Angle Addition Postulate
Restored Republic June 16 2023
Gen 50 Kjv
Aes Salt Lake City Showdown
Taylored Services Hardeeville Sc
Bj's Tires Near Me
Math Minor Umn
Most popular Indian web series of 2022 (so far) as per IMDb: Rocket Boys, Panchayat, Mai in top 10
Appraisalport Com Dashboard /# Orders
Tamilyogi Ponniyin Selvan
Asian Grocery Williamsburg Va
Craigs List Stockton
Überblick zum Barotrauma - Überblick zum Barotrauma - MSD Manual Profi-Ausgabe
Sun Tracker Pontoon Wiring Diagram
Best Restaurants West Bend
Alpha Labs Male Enhancement – Complete Reviews And Guide
3367164101
Race Deepwoken
Craigslist Free Cats Near Me
Diamond Desires Nyc
2000 Fortnite Symbols
Frank 26 Forum
Bob Wright Yukon Accident
Saw X (2023) | Film, Trailer, Kritik
Honeybee: Classification, Morphology, Types, and Lifecycle
Supervisor-Managing Your Teams Risk – 3455 questions with correct answers
Latest Posts
Article information

Author: Duane Harber

Last Updated:

Views: 5827

Rating: 4 / 5 (71 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Duane Harber

Birthday: 1999-10-17

Address: Apt. 404 9899 Magnolia Roads, Port Royceville, ID 78186

Phone: +186911129794335

Job: Human Hospitality Planner

Hobby: Listening to music, Orienteering, Knapping, Dance, Mountain biking, Fishing, Pottery

Introduction: My name is Duane Harber, I am a modern, clever, handsome, fair, agreeable, inexpensive, beautiful person who loves writing and wants to share my knowledge and understanding with you.