You will learn to:

  1. 1️⃣ Pick the merge method that matches your files.
  2. 2️⃣ Stack a folder of workbooks into one table without copying cells by hand.
  3. 3️⃣ Catch broken formulas and mismatched headers after a merge.
Spreadsheet Compare & Merge Tool for Excel - Combine Excel Files into One Screenshot.
️ Eugene - CEO at SoftOrbits, Candidate of Technical Sciences, has more than 16 years of expertise in software development, photo and multimedia applications, enhancing and transforming digital images and videos.
📅 Last updated on:  2026-10-28

Excel has four built-in ways to put two files together, so how to merge two Excel spreadsheets depends on the result you need. When these routes do not fit, Spreadsheet Compare & Merge Tool for Excel appends workbooks and CSV files into one sheet without Excel installed.

What you'll need
  • Excel on a Windows desktop for the built-in routes
  • Copies of your files, saved in one folder to protect the originals
  • A desktop merge tool if headers differ or Excel is not installed
  • About 10 minutes for the longest route on this page

What you will learn
Apply in 10 min Saves 1 hMedium
Windows 11 / 10Free trial, no sign-up

Which method fits when you merge two Excel spreadsheets?

TL;DR

An append puts the rows of file B under file A. A lookup adds columns from file B beside matching rows in file A, keeping the existing rows. Power Query and a merge tool append; XLOOKUP and VLOOKUP look up.

Consolidate on two customer lists returns sums. Pasting 4,000 rows under another 4,000 can put Phone values under Email. If you only need to see what changed between two versions, compare two Excel sheets before you merge.

MethodWhat you getSuitsDo headers have to match?Where it stops
Move or CopyEach sheet as its own tab in one workbookTwo files, a few sheetsNo, sheets stay separateNot available in Excel for the web. Formulas keep pointing at the source file
Copy and pasteRows of one sheet under anotherTwo small tablesYou line the columns up by eyeNothing checks that the columns agree
Power Query, From FolderOne table that refreshes when files changeA folder of files with one layoutYes. Same names and data types. Order may differExcel for Mac may not show From Folder
ConsolidateTotals, with SUM as the default functionSeveral ranges with one layoutSame positions or same labelsReturns summary numbers, never a list of rows
XLOOKUP or VLOOKUPExtra columns beside existing rowsTwo tables that share an ID columnOnly the key column mattersKeys that differ by a space return errors
VBA macroWhatever the macro was written to doA repeated job on many filesDepends on the codeCompany policy often blocks macros
Spreadsheet Compare & Merge Tool for ExcelOne sheet, or one sheet per file, saved as XLSX or CSVTwo files up to a whole folder, XLSX and CSV mixedNo. Columns match by header text or positionAppends only, with no lookup by key

Check the files before you merge

If you have lost a workbook's password, it will not open for Move or Copy or Power Query. Recover access with Excel password recovery. The Microsoft Store version can remove a forgotten Excel password too.
If your table exists only as a PDF, use a PDF to CSV converter to make a spreadsheet file. The same tool is in the Microsoft Store if you want to extract PDF tables to CSV without a separate installer.

  • Put the header in row 1 of every sheet, with no title lines above it
  • Spell each header the same way in every file, because most routes match columns by name
  • Keep one ID column (order number, SKU, email) for lookups or removing duplicates later
  • Add up the rows of all files and compare the total with the worksheet limit

1,048,576
rows is the limit for one Excel worksheet, including the header row, and for any merge into a single sheet
Source

How do you merge one Excel file into another with Move or Copy?

TL;DR

Right-click the sheet tab, select Move or Copy, tick Create a copy and choose the other workbook under To book. You get a separate tab with its formatting and formulas. This works in desktop Excel only and suits two files that should remain separate tabs.

Follow Microsoft's instructions for copying a worksheet to another workbook:

  • Open both workbooks on the desktop so the destination appears in the list.
  • Right-click the source sheet's tab and select Move or Copy.
  • Tick Create a copy.
  • Under To book, choose the destination workbook.
  • Under Before sheet, choose the tab's position and confirm.
To send several sheets together, hold Ctrl and click each tab before you right-click. Microsoft says: "Copying worksheets to another workbook isn't currently possible in Excel for the web."
 The Move or Copy dialog in Excel with Create a copy ticked and the destination workbook selected..

When plain copy and paste is enough

For two short tables with the same columns, copy the second sheet's data rows without its header. Paste them into the first empty row under the first table. Check across the join that each column still holds one kind of data. If fonts or number formats change, paste again and choose Keep Source Formatting from the Paste Options button, or Values for numbers only.

Why do formulas point at the old workbook after you copy a sheet?

TL;DR

A copied sheet keeps its formulas. References to another sheet in the source workbook include that file's name, leaving the new workbook dependent on it. Remove the workbook name with Find and Replace, or copy the referenced sheets together in one Move or Copy.

='[WB2.xlsx]sheetB'!A1
Following the fix in a Microsoft Tech Community thread about copying a sheet between two workbooks, open Find and Replace on the copied sheet. Enter the workbook name, including square brackets, in Find what, leave Replace with empty and press Replace All. The formulas now look for sheetB in the new workbook. That sheet must exist there, so move linked sheets as a group.

Fonts and colors can change if the destination lacks the source workbook's custom theme or color scheme.

Run the merge on copies. Without Create a copy ticked, Move or Copy removes the sheet from the source workbook. Saving that file makes the removal permanent.

How to combine Excel files into one with Power Query

TL;DR

Put the files in one folder, select Data > Get Data > From File > From Folder and choose Combine & Load. Power Query appends every file's rows to one table. Add a file later and refresh the query to include its rows. The files must share the same columns.

From Folder suits 12 monthly exports or one report per branch office. Microsoft's article on importing data from a folder lists Excel for Microsoft 365, Excel 2024, 2021, 2019 and 2016 under Applies To. Excel for Mac and Excel for the web are not listed.

  • Copy the files into a folder that holds nothing else. Power Query includes files in subfolders.
  • In a blank workbook, select Data > Get Data > From File > From Folder.
  • Browse to the folder and check the file list.
  • Select Combine > Combine & Load, or Transform Data to filter the file list first.
  • In the Combine Files dialog, choose the Sample File and the sheet or table to read. Click OK.

Power Query uses one example file, by default the first listed, to decide which columns to expect. Choose a typical file if the first is unusual.
For exactly two workbooks, load each through Data > Get Data > From File > From Excel Workbook. Open one query in the Power Query Editor and select Home > Append Queries to stack the other beneath it.

What about Excel for Mac?

If From Folder is missing from the Get Data menu, an answer on Microsoft Q&A calls this a known limitation compared with Windows. It suggests giving Excel access to the folder, starting a blank query and calling Folder.Files with the folder path.

What happens when the files have different column headers?

TL;DR

Microsoft's folder-import article says "Each file should have the same schema with consistent column headers, data types, and number of columns. The columns do not have to be in the same order as the matching is done by column names." Power Query accepts different column orders, but different header spelling causes problems.

The Power Query overview of combining files says: "You can easily combine all files within a given folder, as long as they have the same file type and structure (including the same columns)."

Sales may call a column Customer while finance calls it Client name. One export may also have a Region column missing from the other. The query treats Customer and Client name as unrelated columns. Microsoft's pages do not describe the result in that case. Check for columns filled for one file and empty for the other.

Allow time to fix headers when merging files from two departments, whichever program you use.

If the columns mean the same thing and have the same order, append by position: column 1 under column 1. Copy and paste and a merge program's By position setting both do this. If the order differs, rename headers in copies until they agree. No route here identifies Client name and Customer as the same field.

When does Consolidate merge spreadsheets, and when does it not?

TL;DR

Consolidate returns one number for matching cells or labels across ranges, using SUM unless you choose another function. Use it for four regional budget sheets with one layout. You get totals; individual list rows are dropped.

These steps follow the Microsoft Support article Consolidate data in multiple worksheets.

  • On the master sheet, click the upper-left cell where you want the result.
  • Select Data > Consolidate.
  • Choose the summary function in the Function box. SUM is the default.
  • Click Collapse, select a source range on another sheet, expand the dialog and click Add. Repeat for each range.
  • Tick Create links to source data to update totals when sources change, then click OK.

Microsoft requires: "Each column must have a label (header) in the first row and contain similar data. There must be no blank rows or columns anywhere in the list." By position needs the same layout in every range. By category matches row and column labels, allowing different arrangements if labels are identical. Microsoft also notes: "You cannot create links when source and destination areas are on the same sheet."

 The Consolidate dialog in Excel with SUM selected and two source ranges added..

How to pull columns from one spreadsheet into another by a shared key

TL;DR

Use XLOOKUP, or VLOOKUP in older Excel versions. Both find the first table's ID in the second table and return a value from that row. Your first table gains columns and keeps its row count. Use this for orders in file A and prices for matching product codes in file B.

Open both workbooks, click the main table's first empty column and write the formula against the other file. XLOOKUP is available in Microsoft 365 and Excel 2021 or later.

=XLOOKUP(A2, [Prices.xlsx]Sheet1!$A:$A, [Prices.xlsx]Sheet1!$C:$C, "not found")
VLOOKUP needs the key in the lookup range's leftmost column and a column number instead of a return range.
=VLOOKUP(A2, [Prices.xlsx]Sheet1!$A:$C, 3, FALSE)
Fill the formula down. An error or "not found" means no matching row was found. Check for trailing spaces or product codes stored as numbers in one file and text in the other. When the results look right, copy the new column and paste it back as Values to cut the link to the second workbook.

 XLOOKUP formula in Excel that pulls prices from a second workbook by product code..

Can a VBA macro merge Excel files automatically?

TL;DR

Yes. A macro can open every workbook in a folder and paste its used rows below the master sheet's last row, automating a weekly merge. Many office PCs block macros; company policy may require an IT administrator to enable them.

Save the workbook as a macro-enabled .XLSM file to keep the code. For a workbook received by email or download, you may need to open its Properties in File Explorer and unblock it. If your organization uses Block macros from running in Office files from the Internet, that checkbox will not help. Ask IT.

For a one-time append, use Power Query. Keep VBA for merge rules that no menu covers.

When is a desktop merge tool the shorter route?

TL;DR

Spreadsheet Compare & Merge Tool for Excel appends .XLSX, .XLSM, .CSV and .TSV files into a single sheet or one sheet per file, saving as XLSX or CSV. Match columns by header text or position. You can mix workbooks and CSV exports in one list, on a PC without Excel.

This Excel file combiner suits folders Power Query cannot combine cleanly. Matching by column name keeps every header in the order first seen, leaving empty cells for missing columns. It ignores letter case and spaces at header edges, so "Email" and "email " share a column. Matching by position ignores header names.

The program converts workbooks saved in the 1904 date system and keeps CSV values like 007 as text. It skips damaged files and counts them in the final message. At the worksheet row limit, it writes what fit and reports the limit.

500,001 rows
merged in 8.64 seconds in our test combining 50 workbooks of 10,000 rows each into one sheet

Fonts, fill colors and number formats carry over unless you tick Plain text. Formula references stay as written, so a relative reference can point at a different row after merging.

The program has no command line. Charts, images, pivot tables, conditional formatting, borders and alignment do not carry over. Resave .XLS, .XLSB and .ODS files as .XLSX before adding them; those formats cannot be read. The trial writes the first 50 rows of a merge.

Twenty exports by hand
Open a file, select and copy the rows, switch windows, find the last row and paste. Check column alignment. Repeat 19 times, checking no file was pasted twice.
VS
One list of files
Add the folder, set the order, choose how columns match and click once. The closing message reports row and file counts.

How to merge Excel files in Spreadsheet Compare & Merge Tool

Open the program and choose Combine files

On the start screen's two cards, click Combine files to open the merge screen.

 Start screen of Spreadsheet Compare & Merge Tool with the Combine files card..

Add the two spreadsheets or a folder of them

Use Add File(s) for single workbooks or Add Folder for a batch, or drag files onto the window. Each workbook's entry shows its sheet name and row and column counts.

 An Excel workbook and a CSV file added to the file list..

Put the files in the order you want the rows

Select a file and click the up or down arrow above the list, or drag its row. The result follows the list order.

 Up and down arrows that set the order of rows in the result..

Choose one sheet or a sheet per file

Under Merge type, choose Into a single sheet to stack rows or One sheet per file for separate tabs.

 Merge type options Into a single sheet and One sheet per file..

Tell the program how to line up the columns

Under Columns, choose By column name or By position. Under Also, tick First row is column names and Keep the header of the first file only to avoid repeated headers in the data.

 Columns setting with By column name selected and the header options ticked..

Name the output file and click Combine files

Keep the suggested name in Save to or enter your own, ending in .xlsx or .csv to set the format. Click Combine files and read the row and file counts. The program refuses to overwrite source files.

 Save to field with an XLSX file name and the Combine files button..

Spreadsheet Compare & Merge Tool for Excel - Combine Excel Files into One Spreadsheet Compare & Merge Tool for Excel - Combine Excel Files into One

Spreadsheet Compare & Merge Tool for Excel by SoftOrbits is an Excel file combiner and a comparison tool in one window. It folds a folder of workbooks into a single file, then shows what changed between two versions of a table. The files are read by the program itself. Excel does not have to be installed on the machine that does the work.

How to combine two Excel sheets without duplicate rows

TL;DR

Append first. In Excel, select the merged table, choose Data > Remove Duplicates, tick the column identifying a record and click OK. Append routes keep duplicate rows; Spreadsheet Compare & Merge Tool for Excel does not remove them.

Tick every column to remove only rows identical in all cells. Tick only the ID column to keep the first row for each ID and delete the rest, even if other cells differ. You may keep the older address.
Put the newer file first if it should win, or sort by a date column before removing duplicates. Power Query's Home > Remove Rows > Remove Duplicates command runs again on every refresh. Microsoft warns that it will not necessarily keep the first duplicate.

Record each source file's row count before merging. After removing duplicates, check that the total equals the sources' sum minus the number Excel reports as removed. A mismatch means a file was added twice or left out.

How to compare two versions of a spreadsheet before merging them

TL;DR

Compare two versions of one table before appending: an append doubles unchanged rows. A comparison shows edited, added and deleted rows. You may need only the newer file and selected rows from the older one.

In Excel, choose View > View Side by Side and enable Synchronous Scrolling to scroll both windows together. This works for 50 rows, but an inserted row in a price list of a few thousand lines shifts everything below it.
Compare two files in Spreadsheet Compare & Merge Tool takes exactly two files and displays synchronized grids, with buttons for the previous and next difference. Match rows row by row, by a key column, or automatically to detect inserted and deleted rows. Key matching suits exports with shared order numbers but different sorting. Export differences as XLSX with highlights or a CSV list, or give the other version's owner a PDF or HTML report.

Can you merge Excel files online, and is it safe?

TL;DR

Online mergers upload your files to a server you do not control. That is fine for a class schedule. For payroll, customer lists or files under a confidentiality agreement, use Excel or a desktop merge program locally.

In one Microsoft Tech Community thread, someone with 33 Excel files in a folder could not find From Folder in Excel for Mac. An online service was suggested first; a later workaround gave Excel access to the folder.

If a website is your only option, remove personal-data columns from copies before uploading.

Spreadsheet Compare & Merge Tool for Excel - Combine Excel Files into One Spreadsheet Compare & Merge Tool for Excel - Combine Excel Files into One
Merge two Excel spreadsheets with Move or Copy, Power Query, Consolidate or XLOOKUP. See where each method breaks and how to merge files with mixed headers.
Spreadsheet Compare & Merge Tool for Excel - Combine Excel Files into One Screenshot.


🙋Frequently Asked Questions

Yes. Use Move or Copy for separate tabs in one workbook. For one table, append with Power Query or copy and paste. Both routes need desktop Excel, and appending needs the same column headers in both files.

Open both files in desktop Excel. Right-click the first file's sheet tab, select Move or Copy, tick Create a copy and choose the second workbook under To book. Confirm. Formatting carries over; formulas referring to other sheets point back to the first file until fixed.

Put the files in one folder. Choose Data > Get Data > From File > From Folder, then Combine & Load to build one table. Headers and data types must match. For mixed headers or a PC without Excel, use a desktop merge program.

Set up Power Query with From Folder. Add a file to the folder and click Refresh All to include its rows. You can also use a VBA macro, though company PCs often block macros and may need IT approval.

For totals, choose Data > Consolidate, select a function such as SUM, add each file's range and confirm. You get one summary value per label or position. Use Power Query to keep every row in one table.

Load each sheet as a query. In the Power Query Editor, select Home > Append Queries and choose the queries to stack. From Folder loads and appends sheets from separate files in one step. Fix header spelling differences first; columns match by name.

Excel for the web cannot copy worksheets into another workbook; Microsoft points you to desktop Excel for that. You can copy and paste ranges between sheets within one workbook online. Open several workbooks in desktop Excel to bring their sheets together.

Write an XLOOKUP formula with the search value, search column and return column. Before Excel 2021, use VLOOKUP with a column number. Both return one value per row, such as a price or name beside an ID.

We have not tested iLovePDF on workbooks. Online programs upload files to a server outside your control. Merge customer or salary data locally.

Delete extra title or logo rows from copies before merging. Most routes treat the first row as column names, so extra rows shift everything. In Power Query, use Remove Top Rows and Use First Row as Headers.

Sources

  • Microsoft Q&A: how to unblock macros on an Excel document the Unblock checkbox in file Properties and the company policy that overrides it
  • Microsoft 365 Insider blog: the From Folder connector in Excel for Mac (https://techcommunity.microsoft.com/t5/microsoft-365-insider-blog/refresh-data-using-power-query-s-from-folder-connector-in-excel/ba-p/4227534) the rollout of the folder connector to the Mac Beta Channel