How to Merge Excel Files Into One (3 Ways)

Merge multiple Excel files into one workbook or one sheet: copy sheets with Move or Copy, or combine a whole folder with Power Query and refresh it each month.
The template
Copy prompt
Open the folder [folder path]. Combine every .xlsx file in it into one workbook called [Combined.xlsx], with all rows from the [sheet name] tab stacked into one sheet and a column showing which file each row came from. Check that the column headers match first and tell me about any file that doesn't.
Advanced computer use agent
Production-grade reliability
Transparent Execution

Why merge Excel files

Regional sales reports, monthly budgets from each team, one export per store: the data arrives in many files and the analysis needs one. Copy and paste works twice; by the twelfth file someone pastes a header row into the middle of the data. Excel has a built-in way to do it properly.

Quick answer: Put the files in one folder, then in Excel select Data > Get Data > From File > From Folder, pick the folder and choose Combine > Combine & Load. Power Query stacks every file into one table, matching columns by name, and you can refresh it when new files arrive. To keep each file as its own sheet instead, right-click a sheet tab, choose Move or Copy, and copy it into the destination workbook.

Let Sai handle your repetitive work

Delegate to Sai

How to Merge Excel Files Into One (3 Ways)

Which way should you use?

MethodResultBest forLimits
Move or Copy sheetOne workbook, one tab per fileA few files you want to keep separateManual per sheet; check formulas that refer to other sheets
Power Query From FolderOne table with every rowMany files with the same columns, repeated monthlyFiles need the same column headers; one folder with no extra files
Copy and pasteOne sheetTwo or three small files, onceEasy to paste headers or miss rows
AI computer agent (Sai)Either result, plus a checkFiles that arrive by email or download, on a scheduleReview the first run; headers must be consistent
How to choose a way to merge Excel files: Move or Copy, Power Query From Folder, copy and paste or Sai

Method 1: Combine a folder of files with Power Query

  1. Put all the files in one folder with nothing else in it. Power Query includes every file in the folder and any subfolders you select.
  2. Check that each file has the same column headers. The columns don't have to be in the same order; Power Query matches them by name.
  3. In Excel, select Data > Get Data > From File > From Folder and browse to the folder.
  4. Check the file list, then select Combine > Combine & Load.
  5. In Combine Files, pick a sample file and, for workbooks, the sheet or table to use. Tick Skip files with errors if you want.
  6. Select OK. Excel loads one table, named after the folder.
  7. Next month, drop the new files into the folder and select Data > Refresh All.

To pick only some files, choose Transform Data instead, filter the Extension or Folder Path column, then select Home > Combine Files.

Method 2: Copy each sheet into one workbook

  1. Open the source workbook and the destination workbook.
  2. Right-click the sheet tab you want and select Move or Copy.
  3. Choose the destination workbook and position, tick Create a copy, and select OK.
  4. Repeat for each file.

Microsoft warns that moving a sheet to another workbook can change formulas or charts that refer to it, so check them afterwards.

Method 3: Copy and paste into one sheet

For two or three small files, copy each file's data without its header row and paste it below the last row of the main sheet. Then sort or filter to make sure nothing landed in the wrong place.

Hand recurring merges to an AI computer agent

Sai is an AI computer agent that works in the apps on your computer, like a person, and asks before critical steps.

Finance scenario: month-end roll-up. On the last workday Sai collects each department's budget file from email, saves them into the month's folder, refreshes the combined workbook, and flags any file whose headers don't match.

Retail scenario: store exports. Sai downloads each store's sales export, adds a Store column, and appends the rows to one master sheet.

Pros: files are collected and merged the same way every time. Cons: if a team renames a column, the merge needs a person to decide; review the first run.

What are the limits?

  • Power Query matches columns by header name; a renamed header becomes a new column.
  • Extra files in the folder, including temporary files, get pulled in.
  • Moving sheets between workbooks can break formulas, charts and 3-D references.

Sources: Microsoft – Import data from a folder with multiple files (Power Query); Microsoft – Move or copy worksheets or worksheet data. Steps checked on December 3, 2026.

Scale Excel merges with Sai

Set the folder and headers
Tell Sai where the files go and which column headers to expect.
Test on one month
Merge one month of files and check the row counts per file.
Run it at month end
Schedule the collection and merge for each month end.

Stop doing repetitive tasks. Let Sai handle them for you.

Sai is your AI computer use agent — it operates your apps, automates your workflows, and gets work done while you focus on what matters.

Try Sai

FAQS