Power Query can stack the data from every sheet into one table. Use From Workbook to combine the sheets of another file, or Excel.CurrentWorkbook to combine tables in the same file, including sheets you add later.
Which method?
| Method | Use when |
|---|---|
| 1. From Workbook | The sheets are in a different file, such as a monthly report |
| 2. Excel.CurrentWorkbook | The sheets are in the workbook you’re working in, and more will be added |
Both need the same columns, in any order, with the same headers on every sheet.
Method 1: Combine sheets from another workbook
- In a new workbook, go to Data → Get Data → From File → From Workbook and choose the file.
- In the Navigator, right-click the file name (not a sheet) → Transform Data.
- Keep only the Data column: right-click its header → Remove Other Columns.
- Click the expand icon in the Data header, untick Use original column name as prefix, OK.
- Home → Use First Row as Headers.
- Filter out the repeated header rows: open the filter on the first column and untick its header text.
- Close & Load.
Keep the Name column if you want to know which sheet each row came from. Rename it Sheet.
Method 2: Combine tables in the same workbook
Four sheets, Violet, Indigo, Blue and Green, hold marks for more than 40 students.

Step 1: Make each sheet’s data a named table
Click in the data → Ctrl + T → OK. Then on Table Design, name it with a common prefix: tb_Violet, tb_Indigo, tb_Blue, tb_Green.



Step 2: Blank query
Data → Get Data → From Other Sources → Blank Query, and type in the formula bar:
= Excel.CurrentWorkbook()

Step 3: Keep only the tb_ tables
Filter the Name column → Text Filters → Begins With → tb_.


This filter is essential. The combined table you load back is also a table in this workbook. Without the filter, it would be included on the next refresh and the data would double each time.
Step 4: Expand and load
Click the expand icon on Content, untick the prefix option, OK. Rename Name to Group and the query to Marks, then Close & Load.



Step 5: Add sheets and refresh
Add a new sheet with a tb_ table, then right-click the result → Refresh.


Other ways
- Excel 365:
=VSTACK(tb_Violet,tb_Indigo,tb_Blue,tb_Green)stacks tables with a formula. - Many separate files in a folder: Get Data → From File → From Folder.
- No Power Query: the merge Excel files tool or the combine worksheets macro.