# VSTACK Function

> Stack arrays or ranges on top of each other with the VSTACK formula function of TX Sheet Control: result width, #N/A padding of narrow arrays and an example.

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

---

Stack arrays or ranges vertically into one array. The rows of `array1` come first, followed by the rows of each further array. The result is as wide as the widest array; missing cells are filled with `#N/A`.

### Syntax

```text
VSTACK(array1, array2)
```

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

Available for supported offline calculation.

### Examples

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

The formula returns the array {1,2;3,4}.

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:** [VLOOKUP Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/vlookup/llms-full.txt)
- **Next:** [WEBSERVICE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/webservice/llms-full.txt)
