# LET Function

> Assign names to calculation results inside a formula with LET in TX Sheet Control: name and value pairs, names that use earlier names and the #VALUE! error.

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

---

Assign names to calculation results inside a formula. `name1` and `value1` are the first name and its value, more name and value pairs can follow, and the last argument, `calculation`, uses the names. A value can use the names before it, so `LET(x,2,y,x*3,x+y)` returns 8. A LET without a calculation returns `#VALUE!`.

### Syntax

```text
LET(name1, value1, calculation)
```

Category: Logical. Minimum arguments: 3. Maximum arguments: 255.

Available for supported offline calculation.

### Examples

```text
=LET(x,5,x*2)
```

The formula returns 10.

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