Returns a number corresponding to an error value, otherwise returns #N/A if no error exists in the formula
ERROR.TYPE(value)
value is the value that is being checked.
Example:
If value contains #INVALID!:
ERROR.TYPE("#INVALID!")
returns 0
If value contains #NULL!:
ERROR.TYPE("#NULL!")
returns 1
If value contains #DIV/0!:
ERROR.TYPE("#DIV/0!")
Returns 2
If value contains #VALUE!:
ERROR.TYPE("#VALUE!")
returns 3
If value contains #REF!:
ERROR.TYPE("#REF!")
returns 4
If value contains #NAME?:
ERROR.TYPE("#NAME?")
returns 5
If value contains #NUM!:
ERROR.TYPE("#NUM!")
returns 6
If value contains #N/A:
ERROR.TYPE("#N/A")
returns 7
If value contains A:
ERROR.TYPE("A")
returns #N/A
Value:
Result:
Imagine you are managing a product inventory spreadsheet. You have a list of products, their current stock level, and their cost per unit. You want to calculate the total value of the stock for each product.
Sometimes, data entry errors can occur. A user might accidentally enter text into a cell where a number is expected, or a product might be marked as "discontinued," causing a division by zero error in a formula.
Scenario: Inventory Management Spreadsheet
Product ID | Product Name | Stock Level | Cost per Unit | Total Stock Value | Error Type | Error Description | ||
|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | ||
1 | P001 | Widget A | 150 | $12.50 | $1,875.00 | No error found | No error found | |
2 | P002 | Widget B | 200 | $8.75 | $1,750.00 | No error found | No error found | |
3 | P003 | Widget C | 120 | $0.00 | Produced error | 2 | #DIV/0! Error | |
4 | P004 | Widget D | out of stock | $25.00 | Produced error | 3 | #VALUE! Error | |
5 | P005 | Widget E | 75 | discontinued | Produced error | 3 | #VALUE! Error | |
6 | P006 | Widget F | 50 | $15.00 | $750.00 | No error found | No error found |
Formulas Used:
What Happens:
PRODUCT & FEATURES
RESOURCES
Terms | Privacy | Spam Policy
© 2026 Zapof