How to Combine Multiple Excel or CSV Files Into One
Many reports arrive as one file per month, region or branch. To analyze them together, you first need one table. Here are three ways to combine them.
Before you combine
- Use the same column names in every file. "Email" and "E-mail" become two columns.
- Remove title rows above the header.
- Check that units and date formats match.
Way 1: Copy and paste (a few files)
- Open the first file. This is your master.
- In the next file, select the data without the header and copy it.
- Paste it under the last row of the master. Repeat for each file.
Way 2: Power Query (many files in a folder)
In Excel for Windows or Microsoft 365, choose Data → Get Data → From File → From Folder, select the folder and click Combine. It builds one table and can be refreshed later.
Way 3: In your browser
On the DataGenius BI start screen, open Have several files? Combine them into one table first, pick your files and click Combine files. Columns are matched by name, so their order does not matter, and missing columns are left blank. Tick Add a column with the file name to see where each row came from, and Use every sheet of Excel files when one workbook has a sheet per month. Then open the combined data or download it as Excel.
Common problems
- Duplicates after combining. The same row may exist in two files. Remove duplicates in the Cleaning Center.
- Different date formats. Use Fix a Column to put dates in one format.
- Extra columns. The report lists columns that are not in every file.
Common questions
Do the columns need to be in the same order?
Not if you combine by column name, as the browser tool does. With copy and paste the order must match, so check it first.
What if one file has a column the others do not?
The column is kept and the other files get blanks there. DataGenius BI lists these columns after combining, so you can check them.
Can I combine a workbook that has one sheet per month?
Yes. Tick "Use every sheet of Excel files" and each sheet is added in turn, with the file and sheet name in the source column.
Related guides
- Merge two Excel sheets by a common column
- Combine monthly bank statement files
- Remove duplicate rows in Excel
Check its quality score and clean it in your browser. Free, no signup, and your file is never uploaded.
Try DataGenius BI