How to Merge Many Excel Files When the Columns Do Not Match
A practical guide to combining monthly or branch Excel files into one sheet by column name, fixing mismatched headers and tracing every row to its source.

How to Merge Many Excel Files When the Columns Do Not Match
Combining spreadsheets sounds like copy and paste until you try it with real files. The January export has eight columns, February has nine because someone added a Notes field, and the March file came from the new system where Customer is called Client. Pasted underneath each other, the values drift into the wrong columns and the totals stop meaning anything. This guide explains a reliable way to consolidate files, using the free Excel Merge Files and Sheets tool, which matches columns by their names rather than their positions.
Why position-based merging fails
Excel stores data in a grid, and copy and paste respects the grid, not the meaning. If column C holds Amount in one file and Discount in another, a pasted block puts discounts under Amount. Power Query can append tables by name, but it takes setup and is not available everywhere. Matching by header name is the core idea: every value goes under the heading it had in its own file, wherever that heading sits.
Step one: collect every source
Drop all the workbooks and CSV files at once. Each sheet of each workbook shows up as its own line with its row and column count, which is a quick sanity check. A sheet with 3 rows where you expected 300 usually means a summary tab or an empty template, and you can untick it. The arrows change the order in which sources are stacked, so you can put January before February even if the files were picked in a different order.
Step two: decide how strict header matching is
Exact matching treats Amount and amount as different columns. That is rarely what you want. Ignoring case and outer spaces is the safe default and handles most exports. Loose matching goes further, ignoring spaces, underscores and punctuation inside names, so Order_ID, Order ID and order-id become one column. Loose matching is powerful but can merge columns that only look alike, so glance at the column list afterwards.
Next choose which columns the result should contain. All columns keeps everything that appears in any file and leaves cells blank where a file lacks that column. Only common columns keeps what every file has, which suits strict imports into another system.
Step three: repair the headers that still differ
Some differences need a human decision. The column list shows each merged column and in how many sources it appears. A column found in only one source is a hint that it has a twin under another name. Press Rename on Client and type Customer, and both are combined. The same approach handles abbreviations, translations and typos in headers. Untick columns you do not need, such as internal IDs, and move columns up or down to get the order you want in the output.
Every step can be undone. If a rename merged the wrong pair, press Undo or Ctrl+Z. The plan is kept in your browser, which helps when the same consolidation is repeated each month with fresh files.
Step four: keep track of where rows came from
Once rows are combined, it is easy to lose their origin. Add a source column containing the file name, the sheet name or both. Later, when a number looks wrong, you can filter on the source and open the original. If exports overlap, for example two weekly files that both include Sunday, tick Remove exact duplicate rows. The counter shows how many identical rows were dropped, so the cleanup is not silent.
Step five: check the header report
Before downloading, open the header differences panel. It lists, for each source, the columns it is missing. That is often the first sign that a branch is using an outdated template. In common-columns mode it also lists the columns each source lost, so nothing disappears without notice. The downloaded workbook repeats this information on a separate Merge report sheet.
Choosing an export
The merged XLSX has a bold header row that stays visible while scrolling and filter buttons ready to use. CSV is better when the next step is a database or another tool. If you only want to collect sheets from several people into one workbook without combining them, the one-sheet-per-source export does exactly that.
Good habits for monthly consolidation
Agree on a template with the people who send files and keep the header row on the first line. Remove title rows and notes above the header before merging, because the first non-empty row is read as column names. Keep the merge plan between months, and look at the row counts each time. If the merged total is not the sum of the sources minus the removed duplicates, something was skipped.
What the tool does not carry over
The merge copies values. Colours, number formats, formulas and charts from the original files are not reproduced, and old XLS files must be saved as XLSX first. For combining the data itself, though, name-based matching turns an error-prone chore into a few clicks.


%20Generator&c=%23991b1b&k=documents)
