Combine Monthly Excel Files from a Folder with Power Query

⏱ 3 min read

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
  1. Set up the source folder first
  2. Build the query
  3. Make it reliable
  4. Refresh next month
  5. Common mistakes
  6. A repeatable month-end routine
  7. When a folder query is not the right tool
  8. Useful next step
  9. Continue learning

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.

Advertisement

Build the query

  1. In Excel, choose Data → Get Data → From File → From Folder.
  2. Select the folder and review the list of files.
  3. Select Combine → Combine & Transform Data.
  4. Choose the table or worksheet that has the common data structure.
  5. In Power Query, confirm headers, data types and unwanted columns.
  6. 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.

Advertisement

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.

Advertisement

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.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong

Leave a Comment