# TAKE Function

> Return rows or columns from the start or end of an array with TAKE in TX Sheet Control: negative counts, oversized counts, #CALC! and spilling.

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

---

Return a number of rows or columns from the start or end of an array. `rows` is the number of rows to keep from the top, or from the bottom when it is negative, and `columns` the number of columns from the left or from the right. A number larger than the array keeps the whole array, and 0 returns `#CALC!`. The result spills into the neighboring cells. In TX Sheet Control, `rows` can't be omitted: `TAKE(array,,1)` returns `#CALC!`.

### Syntax

```text
TAKE(array, rows, columns)
```

Category: Lookup. Minimum arguments: 2. Maximum arguments: 3.

Available for supported offline calculation.

### Examples

```text
=TAKE({1,2;3,4},1)
```

The formula spills 1 and 2, the first row of the array.

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:** [T Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/t/llms-full.txt)
- **Next:** [TAN Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/tan/llms-full.txt)
