# LEN Function

> Count the characters of a text, including spaces, with the LEN formula function of TX Sheet Control: numbers converted to text, empty text and an example.

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

---

Return the number of characters in a text, including spaces. `text` is the text; a number is converted to text first, so `LEN(42)` returns 2, and an empty text returns 0.

### Syntax

```text
LEN(text)
```

Category: Text. Minimum arguments: 1. Maximum arguments: 1.

Available for supported offline calculation.

### Examples

```text
=LEN("TX Sheet Control")
```

The formula returns 16.

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:** [LEFTB Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/leftb/llms-full.txt)
- **Next:** [LENB Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/lenb/llms-full.txt)
