# SEQUENCE Function

> Create a spilled array of sequential numbers with SEQUENCE in TX Sheet Control: rows, columns, start, step, counting down, errors and an example.

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

---

Return an array of sequential numbers. `rows` and `columns` set the size of the array (1 column when `columns` is omitted), `start_or_min` is the first number and `step_or_max` the increment, both 1 when omitted; a negative step counts down. The array spills into the neighboring cells. A size of zero or less returns `#NUM!`. TX Sheet Control takes four arguments; the fifth name in the syntax, `whole_number`, is not accepted and returns `#VALUE!`.

### Syntax

```text
SEQUENCE(rows, columns, start_or_min, step_or_max, whole_number)
```

Category: Lookup. Minimum arguments: 1. Maximum arguments: 4.

Available for supported offline calculation.

### Examples

```text
=SEQUENCE(2,3,1,1)
```

The formula spills two rows and three columns: 1, 2, 3 in the first row and 4, 5, 6 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:** [SECOND Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/second/llms-full.txt)
- **Next:** [SERIESSUM Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/seriessum/llms-full.txt)
