Syntax
| Parameter | Description |
|---|---|
| array1 | Parameter of the VSTACK function. |
| [array2 | (Optional.) Parameter of the VSTACK function. |
| ...] | Parameter of the VSTACK function. |
Examples
Combine Q1 and Q2 sales
=VSTACK(A1:C10, A15:C25)
Stack three regions
=VSTACK(East!A2:D50, West!A2:D50, Central!A2:D50)
Add a header row
=VSTACK({"Name","Sales","Region"}, A2:C100)
Common Errors
Arrays have different column counts. Narrower arrays are padded with #N/A to match the widest array.
The destination range is blocked by non-empty cells.
Tips
If arrays have different column counts, VSTACK pads narrower arrays with #N/A on the right. Ensure all arrays have the same number of columns for clean results.
VSTACK updates automatically when source ranges change. Add a row to the source data and the stacked result grows too.
Stack data first with VSTACK, then wrap in SORT or FILTER: =SORT(VSTACK(range1, range2), 2, -1) combines and sorts in one formula.
Try VSTACK in Viztab
Import your data and use VSTACK with 370+ other formulas. No signup required.
Open Viztab