# LEFT Function

> Return the first characters of a text with the LEFT formula function of TX Sheet Control: num_chars and its default of 1, numbers as text and the #VALUE! error.

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

---

Return the first characters of a text. `text` is the text, a number is converted to text first, and `num_chars` is the number of characters (1 when omitted). A `num_chars` larger than the length returns the whole text, and a negative one returns `#VALUE!`.

### Syntax

```text
LEFT(text, num_chars)
```

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

Available for supported offline calculation.

### Examples

```text
=LEFT("Spreadsheet",6)
```

The formula returns `Spread`.

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