When every department sends a monthly workbook in the same layout, copying and pasting them into a master file is slow and fragile. Power Query can read all files in one folder, apply the same clean-up steps, and build one refreshable table. The important condition is simple: the source files need the same columns and a consistent header row.
In this article
Set up the source folder first
Create one dedicated folder and keep only the files you want in the report there. Avoid mixing old versions, PDFs and unrelated workbooks into it. Microsoft notes that the folder connector includes files in subfolders too, so a clean folder prevents accidental rows entering the result.
Build the query
- In Excel, choose Data → Get Data → From File → From Folder.
- Select the folder and review the list of files.
- Select Combine → Combine & Transform Data.
- Choose the table or worksheet that has the common data structure.
- In Power Query, confirm headers, data types and unwanted columns.
- Select Close & Load to create the combined table.
Make it reliable
Name the Excel table in every source workbook consistently. Keep dates as real dates, not text. Add a Source.Name column before loading if you need to trace a row back to a particular month or department. If a new file has a changed column name, fix the source template rather than manually repairing the final report.
Refresh next month
Drop the new workbook into the same folder and use Data → Refresh All. Power Query repeats its recorded steps. This is the practical benefit: you build the clean-up once, then use it every month.
Common mistakes
- Different header names such as Amount in one file and Value in another.
- Totals rows stored inside the source data.
- Blank files or copies sitting in the same folder.
- One workbook using text dates while others use dates.
For a deeper explanation of the folder connector and its Combine options, see Microsoft’s official folder-combine guide. Also see our Power Query & Pivots guides for more refreshable reporting workflows.
A repeatable month-end routine
Before the reporting deadline, make one person responsible for placing the approved files in the folder. Give the folder a simple naming rule, such as Sales_2026-11.xlsx, and keep a separate archive folder for superseded files. Then refresh the query, check the row count against the source files, and scan the Source.Name column for unexpected names. This takes minutes and catches the most common mistake: loading the same month twice.
When a folder query is not the right tool
Use a different approach when source files have genuinely different structures, when the data lives in a database, or when the workbook contains confidential data that should not sit in a shared folder. The folder connector is best when the process repeats and the input format is controlled.
Useful next step
After loading the combined table, build a PivotTable from it rather than copying the result into another worksheet. The PivotTable, query and source folder then form one refreshable reporting chain.
Stuck on a step? Ask a question and the AI answers using this article.