The fastest way to combine spreadsheets depends on how they're organized
If your spreadsheets have the same columns and you just need to stack the data together, copy and paste is usually fastest. If they have different layouts or you need to pull specific columns from each file, you'll use a formula approach or consolidation tool instead. Excel has built-in features for this, but the right method depends on whether your data is identical in structure or needs rearranging.
The three main routes are: manual copy-paste (works for 2–3 files with identical structure), the Consolidate tool (works for files with the same layout but different locations), and formulas like VLOOKUP or INDEX/MATCH (works when you need to match data across files or pull specific columns). This guide covers all three so you can pick the one that matches your situation.
Key Takeaways
- Copy and paste works fastest when you have two or three spreadsheets with identical column headers and you just need to stack the rows together.
- The Consolidate tool (on the Data menu) automatically combines multiple files with the same structure without opening each one individually.
- VLOOKUP and INDEX/MATCH formulas let you pull specific data from other spreadsheets based on a matching value, useful when files have different layouts.
- Before merging, check that column headers match exactly — even a space or capital letter difference will cause formulas to fail or paste in the wrong place.
- If you're combining more than five files regularly, consider saving them all in the same folder with a consistent naming pattern so you can automate the process later.
Copy and paste when you have two or three identical spreadsheets
Open the first spreadsheet and the file you want to add to it side by side. In the file you're copying from, click on the row number of the first data row (the row below your headers) and drag down to select all the data you want to move. Right-click and choose Copy.
Switch to your main spreadsheet. Click on the first empty row below your existing data. Right-click and choose Paste. The data will land in the same columns it came from. Repeat this for each additional file. This method works because Excel remembers which column is which based on position, not the header name — so if both files have "Name" in column A and "Date" in column B, the paste will land correctly.
The catch: if one file has columns in a different order, or if one file is missing a column, the data will paste into the wrong columns. Always check that the headers match exactly before you paste. If they don't, rearrange the columns in the source file first, or manually move the pasted data afterward.
Use the Consolidate tool for multiple files with the same structure
The Consolidate tool is faster than copy-paste when you have many files or when the files are stored in different locations. It pulls data from multiple spreadsheets automatically without you having to open each one. Open the spreadsheet where you want the combined data to land.
Click the Data menu at the top, then find and click Consolidate (in some versions of Excel, this is under Data > Consolidate). A dialog box will open. In the "Function" dropdown at the top, choose what you want to do — usually Sum if you're adding numbers together, or Count if you just want to count rows. If you're just combining data without math, choose Sum anyway; it won't hurt if your data is text.
Click in the "Reference" field and then navigate to the first file you want to combine. Select all the data including headers (for example, A1:D100), and click the button next to the Reference field to confirm. The file path will appear in the Reference box. Click Add. Repeat this for each additional file. When you've added all the files, click OK. Excel will combine them into your current spreadsheet.
One important note: the Consolidate tool works best when all your files have headers in the same row and data starting in the same row. If one file has headers in row 1 and another in row 2, the tool will treat row 2 as data and include it twice. Check your files before you start.
Use VLOOKUP or INDEX/MATCH when files have different layouts
If your spreadsheets don't have identical structures — for example, one file has customer names and phone numbers, another has customer names and purchase history — you'll need a formula to match the data across files. VLOOKUP is the most common choice for this.
In your main spreadsheet, create a column for the data you want to pull in. In the first cell of that column, type a VLOOKUP formula. The basic structure is: =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]). For example, if you want to find a customer's phone number from another file based on their name, you'd write: =VLOOKUP(A2,[OtherFile.xlsx]Sheet1!A:D,3,FALSE). This looks up the name in cell A2, searches for it in the other file's columns A through D, and returns the value from column 3 (the phone number column).
Replace "OtherFile.xlsx" with the actual file path and name. If the other file is open, Excel will fill in the path automatically when you click on it. The FALSE at the end means "find an exact match" — use this unless you have a specific reason not to. Copy the formula down to all rows that need it. If VLOOKUP returns #N/A, it means the lookup value wasn't found in the other file — check that the spelling and spacing match exactly.
INDEX/MATCH is more flexible than VLOOKUP because it can search in any column, not just the first one. The structure is: =INDEX(return_array, MATCH(lookup_value, lookup_array, 0)). This is useful when the column you're searching in is to the right of the column you want to return. Both formulas work with external files, so pick whichever matches your data layout.
Check for duplicate rows before you merge
After you combine your spreadsheets, you may have the same row twice — especially if the files overlapped or if you accidentally included a header row twice. To find duplicates, select all your data including headers. Click the Data menu, then Remove Duplicates (or Filter > Advanced Filter > No duplicates in older versions).
A dialog will ask which columns to check. Usually you want to check all of them — if every column matches, it's a true duplicate. Click OK. Excel will delete the duplicate rows and tell you how many it removed. If you're not sure whether duplicates should be there, copy your merged data to a new sheet first, then remove duplicates from the copy. That way you can compare if something goes wrong.
Save your merged file with a clear name
Once your data is combined, save the file with a name that shows it's the merged version — for example, "Sales_2024_Combined" instead of just "Sales". If you used formulas that reference other files, those formulas will break if you move or rename the source files. To prevent this, you can convert the formulas to values: select all the cells with formulas, copy them, then right-click and choose Paste Special > Values. This replaces the formulas with the numbers they produced, so the file no longer depends on the source files.
If you plan to update the merged file regularly as new data comes in, keep the formulas and the source files in the same folder. That way, if you move everything together, the links will still work. Document which files you merged and in what order — future you will appreciate knowing where the data came from.
Frequently Asked Questions
What if the spreadsheets have different column headers?
Rearrange the columns in the source files to match your main file before merging. If you're using copy-paste, Excel matches by position, not by header name, so column A from the source file will always paste into column A of the destination. If headers don't match, the data will land in the wrong place.
Can I merge spreadsheets that are in different Excel files without opening them all?
Yes, use the Consolidate tool. It lets you add file paths without opening each file individually. You can also use VLOOKUP or INDEX/MATCH formulas that reference closed files — just include the full file path in the formula, like [C:\Users\YourName\Documents\Sales.xlsx]Sheet1!A:D.
How do I merge spreadsheets if they have different numbers of columns?
If the extra columns are in different files, copy-paste will work fine — just paste each file's data into the correct columns in your main file. If you need to match data across files with different structures, use VLOOKUP or INDEX/MATCH to pull only the columns you need.
What does the #REF! error mean in my merged spreadsheet?
#REF! means a formula is trying to reference a file or sheet that no longer exists or has been moved. If you moved the source files, update the file path in the formula. If you deleted a source file, you'll need to replace the formula with the actual values it produced, or re-create the source file.
Is there a way to automatically merge new spreadsheets as they're added to a folder?
Excel doesn't have a built-in automation feature for this, but you can use Power Query (in Excel 2016 and later) to combine all files in a folder automatically. Go to Data > Get Data > From File > From Folder, select your folder, and Power Query will let you combine all the files at once. This is more advanced but saves time if you're merging many files regularly.