# MAKEARRAY Function

> Create an array of a given size with MAKEARRAY in TX Sheet Control: rows, columns, a LAMBDA with row and column parameters, spilling and the #VALUE! error.

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

---

Create an array of a given size whose values a LAMBDA function calculates. The first argument is the number of rows, the second the number of columns, and the third a LAMBDA with two parameters, which receive the row and the column of each value, counted from 1. A size less than 1, or a LAMBDA without exactly two parameters, returns `#VALUE!`. The syntax names the arguments `array_or_initial`, `array_or_lambda` and `lambda`.

### Syntax

```text
MAKEARRAY(array_or_initial, array_or_lambda, lambda)
```

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

Available for supported offline calculation.

### Examples

```text
=MAKEARRAY(2,2,LAMBDA(row,col,row*col))
```

The formula returns a 2-by-2 array that spills: 1 and 2 in the first row, 2 and 4 in the second.

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:** [LOWER Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/lower/llms-full.txt)
- **Next:** [MAP Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/map/llms-full.txt)
