# LAMBDA Function

> Create a custom function from parameters and a calculation with LAMBDA in TX Sheet Control: calls in parentheses, MAP, MAKEARRAY, #CALC! and #VALUE!.

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

---

Create a custom function from parameters and a calculation. `parameter1` and further parameters, up to 253, name the inputs, and the last argument, `calculation`, is the formula that uses them. Call the function by adding its arguments in parentheses, as in `LAMBDA(x,y,x*y)(3,4)`, which returns 12, or pass it to functions such as MAP and MAKEARRAY. A LAMBDA that is not called returns `#CALC!`, and a call with the wrong number of arguments returns `#VALUE!`.

### Syntax

```text
LAMBDA(parameter1, calculation)
```

Category: Logical. Minimum arguments: 1. Maximum arguments: 254.

Available for supported offline calculation.

### Examples

```text
=LAMBDA(x,x+1)(2)
```

The formula returns 3, the result of x+1 for x = 2.

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:** [KURT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/kurt/llms-full.txt)
- **Next:** [LARGE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/large/llms-full.txt)
