To merge multiple Excel workbooks using Power Query, you should put all the source files into a single folder and use the “From Folder” built-in feature. This process is ideal because it automatically stacks data vertically (appends it) and will dynamically include any new workbooks you add to that folder in the future. Step 1: Prep and Connect to Your Folder
Before starting, ensure all the Excel workbooks share a similar data layout or identical column headers. Place all workbooks to merge into one dedicated folder. Open a new, blank Excel workbook. Navigate to the Data tab on the top ribbon. Click Get Data > From File > From Folder. Browse to select your folder, then click Open. Step 2: Filter and Clean Your File List
Excel will display a preview window listing all documents found in that folder.
Click Transform Data instead of combine right away. This safely opens the Power Query Editor.
Look at the Extension column. Click the filter dropdown arrow to uncheck non-Excel formats (like .txt or .csv).
Look at the Name column. If you have temporary files or summary files you do not want to merge, use text filters to remove them (e.g., Text Filters > Begins With “Sales”). Step 3: Combine the Workbooks
Now that your file list is clean, you can extract and merge the table data. YouTube·Anser’s Excel Academy
Leave a Reply