The fastest way to merge Excel documents depends on what you're combining

If you need to pull data from two or more Excel files into a single spreadsheet, the method you choose depends on whether the files have the same structure, how much data you're moving, and whether you need the merge to happen automatically when source files change.

The simplest approach for most people is to copy and paste data between files, which takes minutes and requires no special knowledge. If your files have identical column layouts and you're combining them regularly, a formula-based approach saves time. For very large datasets or complex merges, you can use Excel's built-in data tools.

This guide walks you through each method so you can pick the one that matches your situation.

Key Takeaways

  • Copy and paste works for any file structure and is the fastest method when you're only merging a few times.
  • If files have matching columns, you can stack data by opening all files at once and copying entire sheets into one workbook.
  • The Consolidate tool in Excel combines data from multiple sheets or files automatically if the layouts match exactly.
  • Power Query (in Excel 2016 and newer) can merge files from a folder without opening each one individually.
  • Always save your merged file with a new name so you don't accidentally overwrite your source documents.

Copy and paste between two files

Open both Excel files on your screen at the same time. In Windows, right-click the Excel icon in your taskbar and select each file, or use Alt+Tab to switch between them. On a Mac, open both files and use the Window menu to arrange them side by side.

In the source file (the one you're copying from), select the data you want to move. Click the first cell, then hold Shift and click the last cell to select the entire range. If your data has headers (column names), include them. Press Ctrl+C on Windows or Command+C on a Mac to copy.

Switch to your destination file (the one you're merging into) and click the cell where you want the data to start. Press Ctrl+V or Command+V to paste. If you're adding data below existing rows, click the first empty row in your destination sheet before pasting.

Repeat this process for each file you need to merge. When you're done, save your destination file with a new name so your original files stay unchanged.

Stack entire sheets when columns match

If all your source files have the same column headers and structure, you can move entire sheets instead of copying cell by cell. This is faster when you're combining many files.

Open your destination file first. Then open each source file and right-click the sheet tab at the bottom. Select "Move or Copy". In the dialog box, choose the destination file from the "To book" dropdown, then select where you want the sheet to appear. Check the "Create a copy" box so you keep the original sheet in the source file.

Repeat for each sheet you want to merge. Once all sheets are in your destination file, you can delete the header rows from the copied sheets (keeping only the first header row) and then consolidate them into a single sheet if you prefer.

To consolidate multiple sheets into one: create a new blank sheet, then copy the header row from the first sheet. Go to each additional sheet, select all data rows (excluding the header), copy, and paste into your new sheet starting below the existing data.

Use the Consolidate tool for automatic combining

Excel's Consolidate feature combines data from multiple sheets or files automatically, as long as the data has identical structure and layout. This is useful if you merge the same files regularly.

Open the file where you want the merged data to appear. Create a new sheet or use an existing one. Click the Data tab in the ribbon, then select Consolidate (you may need to look under "Data Tools" depending on your Excel version).

In the Consolidate dialog, choose your function from the dropdown — usually "Sum" if you're adding numbers, or "Count" if you're just combining lists. Click the range selector button next to "Reference" and navigate to your first source file. Select the data range (including headers) and click the range selector button again to return to the dialog. Click Add.

Repeat for each additional file or sheet. Before clicking OK, check the boxes for "Top row" and "Left column" if your data has headers. Click OK to consolidate. The tool will combine matching data based on row and column labels.

Merge files from a folder using Power Query

If you have many Excel files in one folder with the same structure, Power Query (available in Excel 2016 and newer) can combine them without opening each file individually.

Open a blank Excel file. Click the Data tab, then select "Get Data" (or "New Query" in older versions). Choose "From File" and then "From Folder". Navigate to the folder containing your source files and click Select Folder.

Power Query will show you a preview of all files in that folder. Click the "Combine" button, then "Combine and Load". The tool will ask which sheet to combine from each file — select the correct sheet name. Click OK.

Power Query will load all data from matching files into a single table. You can then save this as a new Excel file. If you add new files to the folder later, you can refresh the query to include them automatically.

Avoid common mistakes when merging

The most common error is pasting data into the wrong location and overwriting existing information. Before you paste, always double-check that your cursor is in an empty area or a new sheet.

Another frequent problem is forgetting to include (or accidentally including) header rows multiple times. If you're stacking data from several files, keep only one header row at the top. Delete duplicate headers from the copied sections before saving.

Column width and formatting sometimes cause confusion. When you paste data, Excel may not automatically adjust column widths to fit the new content. After pasting, select all columns and double-click the border between column headers to auto-fit the width.

Always save your merged file with a new name immediately after combining. If you save over one of your source files by mistake, you lose the original data. Use a name like "Combined_Sales_2024" so it's clear this is the merged version.

When to use each method

MethodBest forTime to complete
Copy and pasteAny file structure, one-time merges, small amounts of data5–15 minutes
Move or copy sheetsFiles with identical columns, combining 2–5 files10–20 minutes
Consolidate toolRegular merges of files with matching structure and labels10–15 minutes (faster on repeat)
Power QueryMany files in one folder, large datasets, frequent updates15–30 minutes (automatic after setup)

Frequently Asked Questions

Can I merge files that have different column names?

Yes, but you'll need to rename the columns to match first, or use copy and paste to manually arrange the data. The Consolidate tool and Power Query both require matching column names to work correctly. If columns are named differently, edit your source files to use identical headers before merging.

What if one file has more rows than the others?

All methods handle uneven row counts without problems. Copy and paste, the Consolidate tool, and Power Query all work with files of different sizes. Just make sure you're not pasting data on top of existing information in your destination file.

Can I undo a merge if I make a mistake?

Yes. Press Ctrl+Z (or Command+Z on a Mac) immediately after pasting to undo. If you've already saved the file, close it without saving and reopen the original. This is why saving with a new filename is important — it keeps your source files safe.

Do I need to keep the original files after merging?

That depends on your needs. If you're creating a report or archive, you can delete the originals after confirming the merge is complete and correct. If you need to track changes or update the merge later, keep the source files in case you need to re-merge or verify data.

Can I merge files that are stored in different locations?

Copy and paste works with files anywhere on your computer. The Consolidate tool can reference files in different folders — just navigate to each file when you're setting up the references. Power Query works best with files in the same folder, though you can manually add files from different locations if needed.