Situatie
If you spend Mondays copying data from email attachments into a “Master” sheet, you’re not working in Excel—you’re doing manual labor. Power Query fixes that. Master these three core data consolidation workflows to turn hours of copy-pasting into a single Refresh click.
Solutie
The case for appending, merging, and consolidating data
Stop the copy-paste madness once and for all
Cleaning data is a classic Power Query use case, but the real power comes when you stop thinking about individual tables and start thinking at the system level. Most Excel users spend a huge chunk of their week copy-pasting data or chasing down the latest CSV.
Power Query helps eliminate this manual labor through three consolidation workflows:
- Appending tables: This is a vertical stack. You use this when you have multiple tables with the same headers—like monthly scores—and want to pile them into one long master list.
- Relational merging: This is a horizontal join. You use this to pull related information from one table into another based on a shared data point, such as a person’s name.
- Folder consolidation: This is the ultimate automation tool. You point Excel at a folder on your drive, and it automatically grabs all the files inside, cleans them, and stacks them into a single table.
By mastering these, you turn Excel from a static calculator into a dynamic data hub.
Workflow 1: Appending tables from a single workbook
Stacking multiple sheets into one master list
Power Query’s Append feature lets you unify several local tables into a single continuous dataset.
The scenario: You have a workbook with 12 separate tabs—one for each month of the year—and you need to combine them to create an annual summary report.
Before you start, ensure your workbook is prepared:
- Create a blank worksheet (such as one called Summary) for the output.
- Format each range as an Excel Table (Ctrl+T).
- Name each table (JanSales, FebSales, and so on).
- Ensure headers match across tables.



Once you’ve checked your setup, use this method to stack them:
- Open the Data tab and click Get Data.
- Hover over From Other Sources and click Blank Query.
- In the Power Query Editor formula bar, type = Excel.CurrentWorkbook() and press Enter. This loads all tables and named ranges.
- Click the filter arrow on the Name column, then select Text Filters > Ends With.
- Type Sales into the first value field, then click OK. This filters only your Sales tables.
- Click the Expand icon (two arrows) in the Content column, uncheck Use original column name as prefix, and click OK.





![]()
Now that all the data is visible, you’re ready to set the data types and load the results:
- Click the ABC123 icon in the Date header and select Date.
- Click the bottom half of the split Close & Load button and click Close & Load To.
- Select Table and Existing Worksheet, then click cell A1 on your blank Summary sheet and click OK.
- Format the Amount column as Accounting using the drop-down menu in the Home tab.




You now have a single, unified master table on your Summary sheet.
The best part? It’s hands-off. Add a new table, then click Refresh All in the Data tab, and it’s included automatically.
Workflow 2: Connecting tables using a common column
Relational merging in Power Query allows you to pull specific data points from one table into another by finding a common link.
The scenario: You have one table (AgeData) containing employee names, ages, and locations, and another table (DeptData) containing those same names paired with their department and job level. These tables are on separate worksheets in the same workbook, and you want to combine them into one.
First, you need to load both tables into Power Query by creating Connections:
- Select a cell in your first table (AgeData) and click Data > From Table/Range.
- In the Power Query Editor, click the bottom half of the split Close & Load button and click Close & Load To.
- Check Only Create Connection and click OK.
- Repeat these steps for your second table (DeptData), then click Queries & Connections in the Data tab to see both these connections in the pane on the right.




Now that both tables are loaded, you’re ready to perform the merge:
- In the Data tab, click Get Data > Combine Queries > Merge.
- In the Merge dialog, select one table in the top drop-down and the other in the bottom drop-down.
- Click the matching bridge column (in this case, Employee Name) in both table previews to highlight them.
- Ensure the Join Kind is set to Left Outer, then click OK. This keeps all rows from the first table and adds matching data from the second.
At this point, the Power Query Editor opens. You’ll see all the columns from your first table displayed normally, but the data from the second table is condensed into a single new column where every cell simply says “Table”.





Now that you can see the condensed data, you’re ready to unpack it:
- Click the Expand icon in the header of the new Table column.
- Uncheck any duplicated columns (such as Employee Name), and uncheck Use original column name as prefix to keep your column headers clean. Then, click OK.
- Finally, click the top half of the split Close & Load button to drop the merged results into a new worksheet.



You’ve now successfully joined two separate lists without writing a single formula.
Because this is a dynamic connection, you don’t need to manually repeat the merge process. As always, if the source data changes, simply click Data > Refresh All (provided the source tables and column structure haven’t changed).
Workflow 3: Merging multiple files from a folder
Consolidating external documents automatically
The From Folder connector pulls data from every file in a directory. It’s ideal for recurring reports like weekly exports or monthly statements.
The scenario: Your coworkers drop weekly Excel files into a shared folder. Every workbook contains a worksheet tab named SalesData, and you need to combine them all into one summary sheet every Monday.
![A Windows Explorer folder named Weekly Reports, with two Excel files named Sales_Week_[number].](https://static0.howtogeekimages.com/wordpress/wp-content/uploads/2026/04/a-windows-explorer-folder-named-weekly-reports-with-two-excel-files-named-sales_week_-number.png?q=49&fit=contain&w=875&h=572&dpr=2)


Before connecting, ensure your incoming files and folders are standardized:
- Each file must contain a worksheet with the same name (for example, SalesData).
- Column headers should be consistent for clean consolidation.
- All files must be saved in the same dedicated folder.
Now, you need to point Excel to your data source, using the Power Query Editor as a security gate to make sure only the correct files get through:
- In the Data tab of a new Excel workbook, click Get Data > From File > From Folder.
- Browse to the folder containing the reports, then click Open.
- In the preview window, click Transform Data. You might be tempted to click Combine straightaway, but clicking Transform Data gives you the chance to make sure your report grabs only the files you need.
- You’ll now see a list of every file in the folder. Click the filter arrows in the Extension or Name columns to uncheck anything that isn’t part of the dataset.



![]()
Now you can tell Power Query how to open and stack those files:
- Click the Combine Files button in the header of the Content column.
- In the Combine Files dialog, select the SalesData worksheet from the list. This tells Power Query to extract that specific worksheet from each file. Click OK.
- In the Queries pane, select Transform Sample File. Any cleaning you do here—such as applying the correct formats to the Date and Amount columns—is applied to every file in the folder.
- Click back on the main query at the bottom of the list (usually named after your folder) to see the final stacked result. If needed, you can remove the Source column, but I prefer to keep it visible so I can see where each row came from.
- Click Close & Load to load the final table into your workbook.
![]()




You’ve now built an automated data pipeline.
Next week, instead of opening a new file to copy-paste, just save it into that folder and click Data > Refresh All.





Leave A Comment?