Skip to content
SmallBizDesk
All tools

Merge Excel and CSV files

Stack several spreadsheets into one sheet, or gather them into one workbook as tabs. Columns are matched by name, even when each file lists them in a different order.

Merge files

Not uploaded.

Drop the files to merge

Excel (.xlsx, .xls), OpenDocument or CSV. Two or more files, or one workbook with several sheets.

How to merge Excel or CSV files

  1. Drop your files on the page, choose them, or choose a whole folder. A workbook with several sheets shows each sheet on its own line; untick any you don't want.
  2. Choose One sheet to stack every row into a single table, or One tab per file to collect the files, unchanged, into one workbook.
  3. Check the preview and the column map underneath it. A column that only some files have is flagged, so a surprise shows up before you download, not after.
  4. Download. Excel files keep dates and number formats; CSV is plain text that any program can open.

How columns are matched

Columns are matched by their names, not their position. Capital letters, spaces and punctuation are ignored, so E-mail, email and EMAIL all land in one column. The order of columns in each file doesn't matter.

A column that only some files have is still kept. Rows from the other files are left blank in it. Names that use different words are not guessed at: Zip and Postal code stay separate, because a wrong guess would mix up your data silently. Rename one of them in its file so they match, then add the file again.

If your files have no header row, untick First row has column names. Columns are then lined up by position, A with A and B with B, and named Column A, Column B and so on.

A worked example

Two sign-up lists from different places. The second one lists email first, spells it E-mail, has no phone column and adds a sign-up date.

spring-fair-signups.csv

RowABC
1NameEmailPhone
2Dana Whitfielddana@example.com(614) 555-0142
3Marcus Bellmarcus@example.com(512) 555-0178

newsletter-export.csv

RowABC
1E-mailnameSigned up
2grace@example.comGrace Liu3/2/2026
3andre@example.comAndre Wallace3/9/2026
Two files about the same kind of thing, in different shapes.

Merged into one sheet with a source column, the names and emails line up, Phone is blank for the newsletter rows, and Signed up is blank for the fair rows:

merged.xlsx

RowABCDE
1Source fileNameEmailPhoneSigned up
2spring-fair-signups.csvDana Whitfielddana@example.com(614) 555-0142
3spring-fair-signups.csvMarcus Bellmarcus@example.com(512) 555-0178
4newsletter-export.csvGrace Liugrace@example.com3/2/2026
5newsletter-export.csvAndre Wallaceandre@example.com3/9/2026
The merged result: four rows, one table, every value in the right column.

The sample files in the tool above are a slightly bigger version of this, including a person who signed up twice. Merging keeps both rows; removing duplicates by email afterwards leaves one.

One sheet or one tab per file?

One sheet is for working with the data: sorting, filtering, a pivot table, a mail merge or an upload to another system. It needs the files to describe the same kind of thing, such as customers or transactions.

One tab per file is for keeping things together without changing them: twelve monthly reports in one workbook, or a set of files to send as a single attachment. Nothing is matched or reordered; each file is copied onto its own tab, named after the file.

Before you merge

  • Title rows above the table. Exports often start with a report title or a date range. Delete those rows so the column names are in the first row, or they'll be read as data.
  • Total rows at the bottom. A totals line is merged like any other row. Remove it first, then total the merged file.
  • Leading zeros. ZIP codes such as 02134 and IDs such as 00981 are kept as text in the Excel file, so the zeros survive.
  • Repeated people or orders. If the same customer appears in two files, both rows are kept. Remove rows that repeat exactly only catches rows that match in every column.

Merging in Excel itself

For two or three small files, copying and pasting works if the columns are in the same order. Check the order first: pasting a file whose columns are shuffled puts emails under the Name heading without any warning.

Excel for Windows (2016 and later, including Microsoft 365) can also combine a folder of files with Power Query: Data > Get Data > From File > From Folder, pick the folder, then choose Combine & Load. It takes more steps the first time, but the query can be refreshed when new files arrive, which suits a job you repeat inside Excel.

Merging is not the same as matching. If you want to add a column from one list to another by a shared value, like putting phone numbers next to emails, that's a lookup (XLOOKUP or VLOOKUP in Excel), not a merge. This tool stacks rows.

Questions

How many files can I merge at once?

There's no set limit. Everything happens in your browser, so the practical limit is your computer's memory. In our tests, a 200,000-row file was merged and saved in under ten seconds; bigger files just take longer.

Can I merge sheets that are in the same workbook?

Yes. Each sheet of a workbook is listed on its own. Untick the ones you don't need, then merge the rest into one sheet or keep them as separate tabs.

What happens to columns that only some files have?

They're kept. Rows from files without that column are left blank in it, and the column map shows which files each column came from.

Does it keep formatting and formulas?

Values and number formats are kept, so dates, currency and percentages look the way they did. Colors, fonts and formulas are not: a formula comes through as the value it last calculated.

Can I merge two files by matching a column, like VLOOKUP?

Not with this tool. It stacks the rows of several files. Adding columns from one list to another by a shared value, such as an email address, is a lookup, which is a different job.

Are my files uploaded anywhere?

No. Your browser reads the files on your computer and builds the merged file there too. Nothing is sent to a server.

Last updated by Muhammad Yahya.