# ERROR.TYPE Function

> Return the number of an error value such as #DIV/0!, #N/A or #SPILL! with ERROR.TYPE in TX Sheet Control: the numbers from 1 to 10 and non-error values.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > ERROR.TYPE Function
- **217 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/error-type/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/error-type/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/error-type/llms-full.txt

---

Return the number of an error value: 1 for `#NULL!`, 2 for `#DIV/0!`, 3 for `#VALUE!`, 4 for `#REF!`, 5 for `#NAME?`, 6 for `#NUM!`, 7 for `#N/A`, 9 for `#SPILL!` and 10 for `#CALC!`. A `value` that is not an error returns `#N/A`, so combine ERROR.TYPE with ISERROR or IFERROR to test any value.

### Syntax

```text
ERROR.TYPE(value)
```

Category: Information. Minimum arguments: 1. Maximum arguments: 1.

Available for supported offline calculation.

### Examples

```text
=ERROR.TYPE(1/0)
```

The formula returns 2, the number of the `#DIV/0!` error of 1/0.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [ERF.PRECISE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/erf-precise/llms-full.txt)
- **Next:** [EUROCONVERT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/euroconvert/llms-full.txt)
