How to Combine Multiple Excel Files Into One

Laptop displaying three monthly Excel workbooks combining into a single spreadsheet

The best way to combine multiple Excel files into one depends on what you want the result to look like. Use Power Query if you need one refreshable table containing rows from multiple workbooks. Use Move or Copy if you want separate worksheets in a single workbook, with their original layouts. For a few simple lists, copying and pasting values may be enough.

This guide covers the three approaches, a worked example using monthly sales files, and the checks you should perform before relying on your combined data. The Power Query steps focus on desktop Excel for Windows; the available connectors and menu labels differ across Mac and web editions.

Which Excel consolidation method should you choose?

Your goalRecommended method
Keep each original worksheet as a separate tabMove or Copy Sheet
Stack matching rows from recurring filesPower Query from a folder
Combine a few tables with different columnsImport separately, then Append Queries
Join customer details to matching order IDsMerge Queries using a common key
Combine a small number of one-time listsCopy and paste values

Appending creates a longer table. Merging matches related records using a shared field such as an invoice number or customer ID. Neither operation is the same as keeping the original workbook tabs intact.

Method 1: Combine Excel files automatically with Power Query

For recurring reports, this method avoids manually opening each file every month. Suppose three workbooks named January.xlsx, February.xlsx and March.xlsx contain sales tables. Each uses a table named Sales with the same four columns: Order ID, Date, Product and Amount.

Prepare the source workbooks

  1. Create a dedicated input folder and put only the source workbooks in it.
  2. In each file, make sure the first row contains meaningful, consistent headers. Remove merged cells, extra title rows and manual subtotal rows from the data area.
  3. For a consistent setup, select the data and convert it into an Excel table using Ctrl + T. Use the same table name, such as Sales, in each workbook.
  4. Save the destination workbook outside the input folder so the combined report cannot accidentally import itself. Close source files if temporary lock files cause errors.

Import all the files

  1. Open a blank destination workbook in desktop Excel.
  2. On the Data tab, open Get Data. Under the file-source options, select From Folder and browse to your input folder.
  3. Inspect the displayed files. Choose the transform option first if you need to exclude unrelated extensions, temporary files beginning with ~$ or unwanted subfolders.
  4. Use the combine option, select a representative workbook as the sample, and choose the matching Sales table or worksheet.
  5. Review the combined preview in Power Query Editor. Keep the source filename column if available, so that you can trace rows back to the original file.
  6. Set appropriate data types, especially for dates, amounts and identifiers. When the preview is correct, load the resulting query into a new worksheet.

For the exact folder connector behavior and the available combination options, consult Microsoft’s folder import guide and the Power Query Folder connector documentation. A sample file’s selected object and transformation steps are applied across the files, so an inconsistent workbook can cause an error.

Worked example: combine three monthly sales files

These numbers are fictional and intended to make reconciliation easy. Assume each source file contains two sales records.

Source fileOrder IDProductAmount
January.xlsxJ001Keyboard25
January.xlsxJ002Mouse15
February.xlsxF001Monitor180
February.xlsxF002Cable10
March.xlsxM001Printer210
March.xlsxM002Toner60

The combined table should contain six data rows and a total Amount of 500 in the same currency. Check that total against the source totals of 40, 190 and 270. If seven rows appear, investigate whether a subtotal, duplicate file or extra record was included. If only five appear, look for filtered or failed imports.

Refresh the combined file next month

When April.xlsx becomes available, place it in the same input folder with the same table structure. Open the destination workbook and use Refresh All on the Data tab. The query can repeat its saved import process and incorporate the new file. Always review refresh errors and row counts before distributing the report.

Avoid manually editing the loaded query table to make permanent corrections. A refresh can overwrite those edits. Fix the source data or add a transformation step instead.

Method 2: Copy separate worksheets into a single workbook

Use this method when you need the source sheets to remain individually editable, with their layouts, formulas and formatting. This is useful for a few departmental worksheets that should be kept as separate tabs.

  1. Open both the source workbook and the destination workbook in desktop Excel.
  2. In the source workbook, select the sheet tab you want to copy. Open the tab’s context menu and select Move or Copy.
  3. Select the destination workbook in the dialog, choose where the sheet should appear, and enable Create a copy to preserve the original.
  4. Confirm the operation, then repeat for other sheets. Rename the copied tabs with clear names and save the destination under a new filename.

Microsoft documents this operation in its worksheet copying guide. Check formulas that refer to other sheets, external workbook links, named ranges, charts and print settings. A copied worksheet does not guarantee that every dependency has been transferred. Excel for the web has different cross-workbook copying capabilities; follow the instructions for your edition.

Method 3: Append Excel files with different columns

A single folder-combine query is most dependable when all sources share a consistent structure. When separate files contain different columns or sheet names, importing them as separate queries gives you more control.

  1. Create an individual query for each workbook using Data and the Excel workbook import option. Select the relevant table or sheet.
  2. Standardize field names in Power Query Editor. For instance, rename Invoice No and Order ID to the same header only if they actually represent the same identifier.
  3. Assign matching data types to equivalent columns. Preserve text identifiers such as 00027 by treating them as text when appropriate.
  4. Choose Append Queries as New and select the queries you want to stack.
  5. Review unmatched columns and missing values, then load the final appended query.

An append matches columns by their names, rather than their visual position. Fields missing from a source can appear as null values. A null quantity is not automatically zero: it may represent missing information. The official append-query guide explains the operation.

When to merge instead of append

Suppose Orders.xlsx has one row per order with a Customer ID, while Customers.xlsx contains customer names and addresses. Appending these lists would mix unrelated records. Instead, use a merge operation on Customer ID to add selected customer fields to the orders table. Verify that the customer key is unique if you expect one match per order; multiple matches may multiply rows when expanded.

For a one-off consolidation involving two small lists, you can also copy their data rows into a master worksheet with a single header. Paste values if you want to avoid copying external formulas. Check column alignment first, and remember that this creates a static result.

Common problems and how to prevent them

ProblemWhat to check
Missing table or worksheet errorVerify the selected object exists in every source file.
Unexpected blank valuesCheck header spelling, source structure and deliberately missing data.
Incorrect dates or amountsReview data types and regional date and decimal formats.
Duplicate transactionsCheck repeated files and business identifiers before removing rows.
Unexpected extra rowsFilter out subtotal rows, templates and unwanted subfolders.
Source file not foundCheck the folder path and permissions after moving files.
Worksheet row limitUse a suitable data model or database when the result exceeds the worksheet capacity.

Do not blindly remove every duplicate row: two separate sales can have the same date, product and amount. Identify duplicates using a business rule, such as a verified unique transaction ID.

Frequently asked questions

Can I combine Excel files without VBA?

Yes. Power Query provides a repeatable import process without writing macros. For separate tabs, the worksheet-copy command is another built-in option.

Does Power Query preserve the original formatting and formulas?

It imports and transforms data into a query result. It is not intended to reproduce the original sheet layout or keep its individual cell formulas. If you need the source sheet itself, copy the worksheet instead and verify its dependencies.

Can I combine files with different sheet names?

Yes, but the standard folder workflow typically applies the same selected table or worksheet to every file. Standardize table names first or create individual queries and append them.

Can I add more files later?

Yes. If the source folder and workbook structure remain compatible with the saved query, adding new files and refreshing the report can include the new records.

Explore our Software & Apps guides for more practical spreadsheet and productivity tutorials.

Editorial note: This guide is based on official Microsoft documentation. The sales data is an original illustrative example; we have not independently tested every Excel version or connector in this article.


More technology guides