The VSTACK function in Excel (available in Microsoft 365 and Excel 2021+) allows you to vertically stack arrays or ranges. It’s especially powerful when you want to combine data from multiple sheets into a single list for reporting, analysis, or dashboards.
🧠 Function Syntax:
VSTACK(array1, [array2], …)
array1,array2, … are the ranges or arrays you want to stack vertically.- All ranges must have the same number of columns.
📘 Scenario-Based Example: Combine Sales Data of Multiple Cities
Let’s say you’re maintaining monthly sales data for your retail business across 3 different cities – Delhi, Mumbai, and Kolkata. Each city has its own worksheet with the same structure.
📄 Sheet: Delhi
| Name | Product | Sales |
|---|---|---|
| Rajesh | Laptop | 55000 |
| Anjali | Phone | 30000 |
📄 Sheet: Mumbai
| Name | Product | Sales |
|---|---|---|
| Vikram | Tablet | 20000 |
| Neha | Phone | 25000 |
📄 Sheet: Kolkata
| Name | Product | Sales |
|---|---|---|
| Arjun | Laptop | 60000 |
| Priya | Phone | 28000 |
🛠️ Step-by-Step: Combine All Sheets Using VSTACK
- Go to a new sheet called “AllData”.
- In cell A1, enter this formula:
=VSTACK(Delhi!A2:C3, Mumbai!A2:C3, Kolkata!A2:C3)
✅ This will vertically combine the data from the three sheets into one continuous table.
📌 With Header Row Included
If you also want the headers, you can do:
=VSTACK({"Name","Product","Sales"}, Delhi!A2:C3, Mumbai!A2:C3, Kolkata!A2:C3)
This adds a custom header at the top.
🎯 Tips for Real-World Use
- Dynamic Ranges: Use Excel Tables or
LETfunction with named ranges for flexibility. - Error Handling: Use
IFERRORinside nested formulas if some ranges might be empty. - Tracking Source Sheet: Add a column with the sheet name:
=VSTACK(
CHOOSE({1,2,3,4},
"Delhi", Delhi!A2:A3, Delhi!B2:B3, Delhi!C2:C3),
CHOOSE({1,2,3,4},
"Mumbai", Mumbai!A2:A3, Mumbai!B2:B3, Mumbai!C2:C3),
CHOOSE({1,2,3,4},
"Kolkata", Kolkata!A2:A3, Kolkata!B2:B3, Kolkata!C2:C3)
)
This adds the city name as a column, useful for filtering and pivoting.
📣 Promote Your Excel Skills
Want to learn more Excel automation and dynamic functions like VSTACK, LET, FILTER, etc.?
👉 Mastering MS Excel – A Comprehensive Course
Build job-ready Excel skills with real-world business scenarios and Indian datasets.
Top rated products
-
Excel Formulas Masterclass: Unlocking Data Analysis Power
₹999.00 -
Konvio Neer Imported TDS Meter
-
Mastering MS Office in Hindi: Excel, MS Access, PowerPoint, and MS Word Training
Original price was: ₹1,999.00.₹1,499.00Current price is: ₹1,499.00. -
HP 15 Laptop – 13th Gen Intel Core i3 (12GB RAM, 512GB SSD)
Original price was: ₹52,721.00.₹33,990.00Current price is: ₹33,990.00. -
Master MIS Reporting & Analysis – Excel, VBA, Access, SQL (Hindi Training)
-
Unlock the Power of Google Sheets: Training From Basics to Brilliance
Original price was: ₹2,299.00.₹1,999.00Current price is: ₹1,999.00. -
Casio Vintage A158WA-1DF – Retro Digital Watch
-
Excel Training Program: Fundamentals to Advanced Techniques : Classroom/ Live Classes
Original price was: ₹6,000.00.₹4,000.00Current price is: ₹4,000.00.

















