# LENB Function

> Return the length of a text with LENB in TX Sheet Control, which counts characters like LEN, also for Japanese or Chinese text, unlike the byte count of Excel.

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

---

Return the length of a text, counted in bytes in Excel for double-byte languages. In TX Sheet Control, LENB counts characters as LEN does, also for Japanese or Chinese text, so `LENB("日本")` returns 2. `text` is the text; the catalog accepts one argument, although the syntax names three, and a second argument returns `#VALUE!`.

### Syntax

```text
LENB(text, argument1, argument2)
```

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

Available for supported offline calculation.

### Examples

```text
=LENB("abc")
```

The formula returns 3.

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:** [LEN Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/len/llms-full.txt)
- **Next:** [LET Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/let/llms-full.txt)
