# TYPE Function

> Identify the type of a value as a number with the TYPE formula function of TX Sheet Control: codes for numbers, text, logical values, errors and arrays.

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

---

Return a number that identifies the type of a value: 1 for a number, 2 for text, 4 for a logical value and 16 for an error. For an array or a range, TX Sheet Control returns an array with the type of each value instead of the single value 64 that Excel returns.

### Syntax

```text
TYPE(value)
```

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

Available for supported offline calculation.

### Examples

```text
=TYPE(42)
```

The formula returns 1, the type of a number.

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:** [TTEST Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/ttest/llms-full.txt)
- **Next:** [UNICHAR Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/unichar/llms-full.txt)
