How to Merge Multiple Excel Files into One File

Introduction to several approaches for merging multiple Excel files (workbooks) into a single file: manually copying for a small number of files, moving whole worksheets into the same workbook, and batch-reading a large number of files with the same structure through data import. It also explains the headers and data to check before and after merging.

Key Points of This Article

  • First, determine whether the table structures of each file are the same; only when the structures match is it suitable to stack them directly (vertically merge).
  • Before merging, unify the header names and column order; otherwise the data will be misaligned into different columns.
  • If you only want to move an entire worksheet into one workbook, using Move or Copy Sheet is simpler.
  • When there are many files with a consistent structure, batch reading with the data import feature is more reliable than copying one by one.
  • After merging, verify the row count, totals, and duplicate records; if problems are found, go back to the source files to correct them.

Many people have a dozen or more Excel files: a sales sheet for each month, an attendance sheet for each department, or a registration list submitted separately by each colleague. When it's time to compile statistics, they have to switch back and forth between multiple files, which is slow and easily leads to missed figures. Merging these files into one workbook lets you do the subsequent summarizing, filtering, and pivot tables all in one place.

This article is for people who need to merge multiple Excel workbooks into a single file. It differs from "merging multiple worksheets within one workbook" in that the starting point is multiple separate files. After reading it, you will be able to judge which method to use, know what needs to be standardized before merging, and learn to use several checks to confirm the result is error-free.

How to Merge Multiple Excel Files? One-Sentence Answer

Whether multiple Excel files can be merged directly depends mainly on whether their table structures are consistent. Table structure refers to the header names, the order of the columns, and their meanings. If the structures match, the tables can be stacked vertically into one long table; if they don't match, you need to clean them up before merging. The table below can help you choose quickly.

Your situationRecommended PracticesCause
There are only two or three files, and the headers are exactly the same.Open each one in turn, copy its data range, and paste it at the end of the master sheet.When the document is short, the operations are intuitive and easy to follow as you work.
Each file is a complete, standalone worksheet, and I want to put them all into the same workbook.Use the Move or Copy Sheet feature to move the worksheet into the target workbook.Keep each table as it is, without changing the content.
There are many files, but the headers and column order are all the same.Using Excel's data import feature to batch-read files from a specified folderTo avoid missing anything manually, you can refresh again after adding new files.
Headers look similar but the column order differs, or the column names are written inconsistently.First, unify the column names and column order across each file, then merge them.Inconsistency causes data of the same type to land in different columns, distorting the summary results.
The data was originally in CSV or plain text format.First open the file in Excel and save it as .xlsx, then merge it using the method above.After the formatting is unified, formulas and formatting are easier to preserve.

Before You Begin: Confirm These Points

Spending a few minutes checking before you start can prevent rework after merging. The following items can easily affect the results.

  • Whether the headers are consistent. When merging, Excel aligns data by column name or column position. "Sales revenue" and "Sales amount" will be treated as two separate columns, so after merging, the same type of data is split across two places, and statistics will miss values.
  • Whether there are extra title rows and total rows. Many reports have a company name and date at the top and a "Total" row at the bottom. If these are copied along with the data, they become part of the dataset after merging, and summing will double-count. Delete them first, or keep only the data range.
  • Whether there are hidden worksheets, hidden rows, or filter states. Hidden content is easy to miss when copying, and it can also be carried in by mistake. When you open each file, check the sheet tabs and the filter buttons.
  • Whether there are formulas that reference other files. When you copy formulas with external references, they may still point to the original file after pasting, and will show errors if the file is moved. If necessary, paste the formula results as values first.
  • Whether the original files should be kept. Perform merging operations on copies whenever possible. Copy all source files into a new folder first, so that if you paste something incorrectly, the original data is still intact.

Steps to Merge Multiple Workbooks into One File in Excel

The steps below apply when there are only a few files and their table structures are consistent. Take "sales detail tables for three months" as an example: each file is one table, with columns for date, product, quantity, and amount.

  1. Create a master summary file. Open Excel, create a blank workbook, and save it as "Merged Master Table", to serve as the storage location for the final result.
  2. Open the first source file and copy the data range. Select the header row and all data rows, excluding the title row and the total row, then press copy.
  3. Paste into the master table and keep the header. Paste in row 1 of the master table so the header comes along with the data. This is the first batch of data, and the header is kept only once.
  4. Open the remaining files in turn and copy only the data rows. Do not copy the header. Paste starting from the row below the last row of the master table, making sure the data is continuous with no blank rows in between.
  5. Keep the original sheets intact with Move or Copy. If each file is a complete table and does not need to be merged into one, right-click the sheet tab in the source file, choose Move or Copy, move it into the master workbook, and tick "Create a copy". This way, each month's table is kept as an independent worksheet.
  6. Add source tags to the data. Add a new column "Source" to the right of the master table, and each time a batch of data is pasted, fill in the file name or month. If problems arise later, you can quickly trace them back to the original file.
  7. Use data import when there are many files. Put all files with the same structure into the same folder, use Excel's data import function to select that folder, and the system will list all the files; choose to merge and load them. Afterward, when new files are added, a single refresh updates the results.
  8. Save and close the source files. After confirming the master table is correct, save it and leave the source files untouched as backups.

Verify each item after completion

Completing a merge does not mean the result is correct. The following checks can catch most problems.

Checklist itemsHow do you look at it?What should I do if I have a problem?
Do the line counts match?Compare the total number of data rows across all source files (excluding headers) with the number of data rows in the summary table.The variance explanation has items that were missed or pasted in by mistake; go back to the corresponding source file and copy it again.
Are the totals consistent?Sum the amount, quantity and other numeric columns separately, then compare them with the totals of each source file added together.When the numbers don't match, check whether subtotal or total rows have been mixed in, or whether any numbers stored as text were left out of the calculation.
Does the table header appear only once?Filter the master sheet by its header column names to check whether there are any duplicate header rows.Delete the extra header rows in the middle, and make sure the data area is continuous.
Are the columns aligned?Spot-check a few rows to confirm that the content in each column matches the meaning of its header.If the columns are misaligned, go back to the source files, unify the column order, and then merge again.
Are there duplicate records?Use a distinct count on the order number or ID column to check whether any record appears twice.Confirm whether it's a genuine duplicate or whether the same content already exists across multiple files, then decide whether to delete it.
Is the number format correct?Check whether number columns are left-aligned, or dates are displayed as textConvert the textual numbers into numeric values, standardize the date formats, and then perform the calculations.

Additionally, if the merged data is to be used for translation, handed to others for review, or converted to PDF, it is recommended to upload the Excel file in OmniDoc, choose either bilingual side-by-side or translation-only output as needed, and after downloading the results, check important figures and technical terms item by item. Machine translation or recognition results inevitably contain deviations, so key content still requires manual review.

📊 Core Comparison

Merging multiple files usually follows three approaches, each with its own trade-offs.

MethodSuitable situationsAdvantagesLimitations
Manual copy and pasteFew files, and the headers are exactly the same.Low barrier to entry, and every step is visible.The file takes a long time when there are many documents, and the copy range is easy to get wrong.
Move or Copy WorksheetsEach file is a complete, standalone table, and I want to keep them exactly as they are.Without changing the content, keep the structure of every table.Without performing data stacking, a single consolidated long-format table cannot be obtained directly.
Data import batch mergeThe documents are numerous and uniformly structured, and they need to be repeatedly updated over the long term.It is not easy to miss; just refresh after adding a new file.Setup in the early stage is a bit troublesome; each file's structure must be strictly consistent.

❓ Frequently Asked Questions (FAQ)

1. What to do when merging multiple Excel tables into one table and the headers are duplicated?

In the master sheet, filter by the column header names to find the extra header rows that appear in the middle, then delete them row by row. From now on, when merging, keep only the header from the first file and copy only the data rows from the others.

2. After merging, numbers became text and can't be summed. How do I fix this?

Select the column, convert the text-formatted numbers into real numbers (using "Convert to Number" or "Text to Columns"), and then sum them. If the source file shows green triangles or text-format warnings in the cells, that is usually the cause.

3. Can files with different numbers of columns be merged?

Yes, but they need to be standardized first. Add empty columns for any missing columns in the source files, adjust the column order so it's consistent, and then merge. For column names that have the same meaning but are written differently, change them to the same name as well.

4. Why do formulas show errors after merging?

Most likely the formulas reference the original file, and the links break after the file is moved or renamed. Copy the result range, then paste it using the "Values only" paste option to remove the external references and keep the calculated results.

5. After merging the tables, how do I translate or export to PDF?

First complete the merging and verification, then save the master table as an .xlsx file. OmniDoc supports translation of Excel files, with the option of bilingual side-by-side output or translation-only output, preserving the table structure. The translation results need manual review, especially numbers and proper nouns.

📝 Summary

Merging multiple Excel files into one: the key is to first confirm that the table structures are consistent, then choose a method such as copy-and-paste, moving worksheets, or data import. After merging, check the results with three items—row counts, totals, and duplicate records—which will prevent most errors.

Open OmniDoc and process your spreadsheet files

Updated 2026-11-29