Google Sheets VSTACK: Stack Multiple Ranges Vertically into One Table
VSTACK appends arrays and ranges vertically on top of each other. Replaces complex manual curly-bracket `{Sheet1!A:B; Sheet2!A:B}` syntax with clean dynamic array stacking.
=VSTACK(array1, [array2, ...])Formula Parameters & Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
| array1 | Range | Required | First table. |
| array2 | Range | Optional | Subsequent tables appended below array1. |
Real-World Spreadsheet Examples
Explore verified operational formulas used in enterprise reporting and database workflows:
Example 1: Consolidate Regional Sales into One Master List
=VSTACK(US_Sales!A2:E, EU_Sales!A2:E, APAC_Sales!A2:E)Example 2: Prepend Custom Headers Above Query Output
=VSTACK({"Name", "Email", "Spend"}, QUERY(A2:C, "SELECT * WHERE C > 500"))Example 3: Stack Only Non-Empty Rows Using FILTER
=VSTACK(FILTER(A2:D, A2:A<>""), FILTER(E2:H, E2:E<>""))Common Errors & Solutions
Performance Pro Tips
- Use `HSTACK` when you need to combine tables horizontally side-by-side.
Frequently Asked Questions
Does VSTACK recalculate automatically when data changes?
Yes. Google Sheets recalculates all dependent formulas immediately whenever referenced input cells are modified.
Is this formula compatible with Microsoft Excel?
Modern functions like XLOOKUP, FILTER, UNIQUE, SORT, and LET are natively supported in Excel 365. However, QUERY is unique to Google Sheets and uses the Google Visualization API syntax.
Related Google Sheets Formulas
QUERY
The QUERY function is Google Sheets' most versatile formula, executing a SQL-like Google Visualization API Query Language string across spreadsheet tables to filter, aggregate, group, pivot, and sort data in a single formula.
Data TransformationARRAYFORMULA
ARRAYFORMULA enables single spreadsheet formulas to output an entire matrix or column of calculated results automatically. When new rows are entered, ARRAYFORMULA calculates them instantly without requiring manual formula dragging.
Data TransformationFILTER
FILTER dynamically outputs only the rows or columns from a source range that satisfy one or more logical conditions. As source data updates, filtered results re-calculate automatically.