Dynamic arrays
VSTACK
Arrays stacked on top of each other.
Syntax
VSTACK(array1, array2, …)Example: =VSTACK(January!A2:C50,February!A2:C50)
Available in: Excel 2024, Microsoft 365
Try it
A tiny spreadsheet with example data. Edit the formula or any number and see the result.
Formula in F2: =VSTACK(A2:B3,A6:B7)
| A | B | C | D | E | F | G | |
|---|---|---|---|---|---|---|---|
| 1 | Region | Product | Units | Price | Result | ||
| 2 | East | Pen | 120 | 2.5 | East | Pen | |
| 3 | West | Pen | 80 | 2.5 | West | Pen | |
| 4 | East | Book | 45 | 12 | West | Lamp | |
| 5 | North | Book | 60 | 12 | East | Lamp | |
| 6 | West | Lamp | 30 | 25 | |||
| 7 | East | Lamp | 15 | 25 |
Result in F2: East