The fastest way depends on how many files you have and whether the data is identical in structure
If you have two or three Excel files with the same columns, the quickest route is to copy and paste the data manually into a single file. Open the first file, select all the data (Ctrl+A), copy it (Ctrl+C), then paste it into a new blank workbook. Repeat for each additional file, pasting the data below the previous set. This works well when the files are small and you can see all the data at once.
For larger files or many files at once, Excel's built-in consolidation tools are faster and less error-prone. The method you choose depends on whether your files have identical layouts, whether the data needs to be combined by matching values, and whether you want the result to update automatically when the source files change.
Key Takeaways
- Manual copy-and-paste works for two or three small files with identical column layouts, but becomes slow and error-prone with more files.
- Excel's Consolidate tool (Data tab, Consolidate button) combines data from multiple files by position or by matching labels, and can refresh automatically.
- Power Query (Get & Transform Data in the Data tab) lets you load data from multiple files at once and is the fastest method for ten or more files.
- If your files are in a single folder with identical structures, you can use a formula-based approach with INDIRECT and INDEX to pull data without manual copying.
- The result is always a new file — merging does not delete or change your original files.
Merging files with identical column layouts using copy and paste
Start by creating a new blank Excel workbook. This will be your destination file where all the data lands. Save it with a clear name like "Merged Data" before you begin.
Open the first source file. Select all the data including headers (click the cell in the top-left corner, then press Ctrl+Shift+End to select to the last used cell). Copy it with Ctrl+C. Switch to your new blank workbook, click cell A1, and paste with Ctrl+V. The headers and all data from the first file now appear in rows 1 onward.
Open the second source file and select all its data the same way. Copy it. In your merged workbook, click the first empty row below the data you just pasted (if the first file had 100 rows of data, click row 101). Paste the data. Repeat this process for each additional file, always pasting below the previous data. Do not include the header row from the second and later files — select only the data rows, leaving the headers behind.
This method works reliably when all files have the same columns in the same order. If columns are in different orders or some files have extra columns, the data will misalign and you will need to rearrange it manually afterward.
Using Excel's Consolidate tool for automatic combining
The Consolidate tool is built into Excel and works when you have multiple files with identical structures. It can combine data by position (stacking rows) or by matching labels (combining data with the same row and column headers). Open a new blank workbook and go to the Data tab. Click Consolidate (in the Data Tools group).
A dialog box opens. In the "Function" dropdown, choose Sum if you want to add numbers together, or choose another function like Average, Count, or Max depending on what you need. Leave it on Sum if you are just combining rows of data without calculations.
Under "Reference," click the folder icon and navigate to your first source file. Select all the data in that file (including headers) and click OK. The reference path appears in the box. Click Add. Repeat this for each additional file, clicking Add after each one. When all files are listed, check the box for "Labels in first row" if your data has headers, and check "Create links to source data" if you want the merged file to update automatically when the source files change. Click OK. Excel combines all the data into the new workbook.
If you check "Create links to source data," the merged file will refresh whenever you open it, as long as the source files are still in the same location. If you move or rename the source files, the links break and you will need to update them manually.
Merging many files at once with Power Query
Power Query (called Get & Transform Data in newer versions of Excel) is the fastest method when you have ten or more files to merge. It loads data from multiple files in a single operation and handles files with slightly different structures better than manual methods. Open a new blank workbook and go to the Data tab. Click Get Data (or New Query), then select From File, then From Folder.
Navigate to the folder containing all your Excel files and click Select Folder. Power Query shows a preview of all files in that folder. Click Load to load all of them at once, or click Transform Data to edit the data before loading (for example, to remove unnecessary columns or filter rows). Power Query opens the data in the Query Editor, where you can see all files stacked together.
Once the data looks correct, click Close & Load. The merged data appears in your workbook. If you need to update the merge later (for example, if you add new files to the folder), right-click the query in the Queries pane and click Refresh. Power Query reloads all files from the folder and updates the merged data automatically.
Power Query requires that all files in the folder have the same column names and data types. If one file has a column called "Date" and another has "Date Submitted," Power Query will treat them as separate columns. You can fix this in the Query Editor before loading, or you can move files with different structures to a separate folder and merge them in a second step.
Merging files with different column layouts
If your files have different columns or columns in different orders, you need to standardize them before merging. The safest approach is to edit each source file so that all columns are in the same order with identical names. Open each file, add any missing columns, rename columns to match the others, and delete any columns you do not need. Save each file. Then use any of the methods above to merge them.
Alternatively, you can merge the files first and then clean up the result. If you use Power Query and the files have different columns, Power Query will create separate columns for each variation (for example, "Date" and "Date Submitted" will be two columns). After loading, you can delete the unnecessary columns and rename the others to match. This is slower but works if you have only a few files with minor differences.
If files have completely different structures (for example, one file has sales data and another has employee data), do not merge them into a single table. Instead, keep them as separate sheets in the same workbook, or create a separate merged file for each type of data.
Keeping your original files safe during the merge
Merging never changes your original files — the process only reads data from them and copies it to a new location. Your source files remain exactly as they were. However, it is still a good idea to keep backups of important files before you begin, in case you make a mistake during the merge and need to start over.
If you use the Consolidate tool with "Create links to source data" checked, or if you use Power Query, the merged file stays connected to the source files. If you later delete or move a source file, the merged file will show an error when you try to refresh. To avoid this, keep all source files in the same folder and do not rename them after you create the merge.
Frequently Asked Questions
Can I merge files that have different numbers of columns?
Yes, but the result will have all columns from all files. If File A has columns for Name, Date, and Amount, and File B has columns for Name, Date, and Notes, the merged result will have all four columns. Rows from File A will be empty in the Notes column, and rows from File B will be empty in the Amount column. You can delete unnecessary columns after merging.
What if the files are in different folders?
Copy-and-paste and Consolidate both work with files in different folders — you navigate to each file separately and add it to the merge. Power Query works best when all files are in a single folder, but you can use it with files in different folders by loading them one folder at a time and then combining the results manually.
Will the merged file update if I add new data to the source files?
Only if you use Consolidate with "Create links to source data" checked, or if you use Power Query and refresh the query. Manual copy-and-paste creates a static copy that does not update. If you add rows to a source file after merging, you will need to merge again to include the new data.
How do I merge files that have the same data in different sheets?
If each file has multiple sheets and you want to combine all of them, copy and paste each sheet separately into your merged workbook, or use Power Query to load each sheet as a separate query and then combine them. Consolidate works with single sheets only, not with multiple sheets in one file.
Can I undo a merge if I make a mistake?
Yes. If you used copy-and-paste, press Ctrl+Z to undo. If you used Consolidate or Power Query, delete the merged data or the query and start over. Your source files are never changed, so you can always try again.