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
What does the thin red line flag mean?
Convert $2,500 per month to Yearly salary | Talent.com
No Hard Feelings Showtimes Near Metropolitan Fiesta 5 Theatre
Fort Morgan Hometown Takeover Map
Top 11 Best Bloxburg House Ideas in Roblox - NeuralGamer
Bj 사슴이 분수
O'reilly's Auto Parts Closest To My Location
Windcrest Little League Baseball
PRISMA Technik 7-10 Baden-Württemberg
My Boyfriend Has No Money And I Pay For Everything
Red Wing Care Guide | Fat Buddha Store
Emmalangevin Fanhouse Leak
CA Kapil 🇦🇪 Talreja Dubai on LinkedIn: #businessethics #audit #pwc #evergrande #talrejaandtalreja #businesssetup…
Dark Souls 2 Soft Cap
How To Delete Bravodate Account
New Mexico Craigslist Cars And Trucks - By Owner
Craigslist Boats For Sale Seattle
C Spire Express Pay
Busted Newspaper S Randolph County Dirt The Press As Pawns
Dallas’ 10 Best Dressed Women Turn Out for Crystal Charity Ball Event at Neiman Marcus
Who called you from 6466062860 (+16466062860) ?
Bahsid Mclean Uncensored Photo
The best TV and film to watch this week - A Very Royal Scandal to Tulsa King
Craigslist Prescott Az Free Stuff
Azpeople View Paycheck/W2
Masterkyngmash
Mtr-18W120S150-Ul
Craigs List Tallahassee
Best Sports Bars In Schaumburg Il
Marlene2995 Pagina Azul
897 W Valley Blvd
ATM, 3813 N Woodlawn Blvd, Wichita, KS 67220, US - MapQuest
Newsday Brains Only
Yoshidakins
Merge Dragons Totem Grid
Ksu Sturgis Library
Ashoke K Maitra. Adviser to CMD's. Received Lifetime Achievement Award in HRD on LinkedIn: #hr #hrd #coaching #mentoring #career #jobs #mba #mbafreshers #sales…
Cranston Sewer Tax
18 terrible things that happened on Friday the 13th
Infinite Campus Farmingdale
11526 Lake Ave Cleveland Oh 44102
Juiced Banned Ad
20 Mr. Miyagi Inspirational Quotes For Wisdom
Aurora Southeast Recreation Center And Fieldhouse Reviews
Diamond Spikes Worth Aj
Ciara Rose Scalia-Hirschman
Coleman Funeral Home Olive Branch Ms Obituaries
Edict Of Force Poe
Hy-Vee, Inc. hiring Market Grille Express Assistant Department Manager in New Hope, MN | LinkedIn
Stone Eater Bike Park
Varsity Competition Results 2022
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.