Practical spreadsheet guide

How to merge Excel files by a common column

Use a shared value—such as customer ID, email address, phone number, SKU or order number—to connect related rows from 2 or more Excel files, CSV files or worksheet tabs.

What “merge by a common column” means

Suppose one source contains customer contact information, another contains purchases and a third contains payment status. They describe the same customers, but the useful information is split between files or sheets. A common value gives each record an identity so the rows can be joined correctly.

customers.xlsx

Customer IDName
A1Ada
A2Grace

orders.csv

Client NumberSpend
A1$50
A3$75

In MergeStudio, Customer ID can be mapped to Client Number. A third sheet could use Account ID. The headers do not need to be identical; the values are what connect the records.

You can merge more than two sources

The workflow supports 2 or more selected spreadsheet sources. Those sources can come from several uploaded workbooks, CSV files, several tabs inside one workbook, or a mixture of all three. If your job involves customers + orders + payments + CRM data, you can map the matching field for each source and create one output file.

For a full multi-file example, see how to merge 3, 4, 5 or more Excel files. If your data is already in tabs inside one workbook, see how to merge multiple sheets in one Excel file.

Choose the result you actually need

Matches Only

Keep records that can be matched across all selected sources.

Keep Main Sheet

Keep every row from one primary source and add information from the others where a match exists.

Keep Everything

Keep records from every source, with blanks where a related match does not exist.

Merge the files step by step

  1. Open the free browser merge tool.
  2. Add one or more XLSX, XLS or CSV files. You can select several files at once and add more later.
  3. Select at least two worksheet sources. They may come from separate files or from the same workbook.
  4. Choose Matches Only, Keep Main Sheet, Keep Everything or Stack Rows.
  5. For a join, choose the matching column separately for every selected source.
  6. Choose and reorder the columns for the finished workbook.
  7. Review the result and download the merged XLSX file.

Avoid the most common matching mistakes

When a formula is not the easiest approach

If you are chaining several VLOOKUP or XLOOKUP formulas across external workbooks, a visual join can be easier to audit because the source relationships and output columns are selected directly. Read the VLOOKUP online alternative guide for the tradeoffs.

Ready to combine your spreadsheets?

Process everyday files entirely in your browser—no account required.

Merge multiple Excel files free →