In Excel, use Power Query’s From Folder connector and Combine & Transform command to merge Excel files that share the same table structure into one refreshable table.

This workflow combines compatible rows from multiple workbooks into a single query result. It does not preserve each source workbook as a separate tab, and it does not retain source formulas as live calculations. If your requirement is to collect complete worksheets into one local download instead, compare that workflow with the separate-tab method later in this guide.

how to use power query to merge excel files
How to Use Power Query to Merge Excel Files

Prepare the source files

Power Query can read several files as one dataset, but the result is dependable only when the files follow a predictable structure. Prepare the inputs before opening Power Query:

  • Put the source .xlsx files in one dedicated folder. Remove temporary files, copies, and workbooks that are not part of the merge.
  • Prefer one worksheet per file. If a workbook contains several worksheets, decide which sheet represents the table before importing it.
  • Use identical header labels, column order, and data types in every file. Correct spelling differences and mixed date or number formats in the sources first.
  • Remove accidental blank rows above the headers, because they can make Excel interpret the first data row as column names.
  • Save formula-based workbooks in Excel before importing them. Power Query reads the stored values available in the files; it does not act as a formula recalculation engine.

Do not expect the folder merge to reconcile unrelated business schemas automatically. Files representing monthly extracts, weekly reports, or repeated exports are good candidates when their columns follow the same pattern.

Run the folder merge in Excel

The following process uses the standard Power Query controls in desktop Excel. Keep the source folder available because the saved query refers back to it when you refresh.

  1. Open Excel and select Data > Get Data > From File > From Folder. Browse to the folder containing the source workbooks, select it, and choose Open.
  2. Confirm that the folder list contains the intended files. Click Transform Data to open them in Power Query Editor rather than loading them directly into the worksheet.
  3. In Power Query Editor, select Home > Combine & Transform > Combine Files. In the Combine Files dialog, choose a representative source file. If the dialog lists worksheets, select the worksheet that should define the table structure.
  4. Leave Skip Sample File clear unless you intentionally want to omit the sample file’s data. This ensures the representative rows are included alongside the other files.
  5. Review the Data Preview and the available Transform commands. Select the required columns, remove unwanted empty rows or columns, and set data types where necessary. If one source has different headers or incompatible types, correct the source files before relying on the combined result.
  6. Select Home > Close & Load to place the combined table on a worksheet. If you need a particular destination, choose Close & Load To and select the worksheet or new sheet.
  7. Save the Excel workbook, then test the query by changing a harmless value in one source file, saving that file, and selecting Data > Refresh All in Excel. Confirm that the loaded table reflects the update.

Understand what the query creates

Power Query stores a refreshable query in the current Excel workbook and loads its output into a worksheet. The source workbooks are not embedded as full-fidelity Excel files, and the query result contains data rather than the source formulas as live formulas. If row order matters, add an explicit sort step before loading. If you later remove a source file or change its structure, the query may produce an error until the folder contents or transformation steps are corrected.

Check headers, data types, and coverage

Do not treat a completed load as proof that the merge is correct. Inspect the combined result before sharing or using it:

  • Confirm that every expected field appears once and that unexpected columns have not appeared.
  • Check dates, numbers, identifiers, and leading-zero values. A type inferred as text may require a deliberate transformation.
  • Compare the combined row coverage with the source files and spot-check records from more than one workbook.
  • Look for error cells, missing fields, repeated headers, and unexplained blank rows.
  • Use a duplicate-removal step only after deciding what constitutes a duplicate. Removing complete duplicate rows is not the same as deduplicating records by a business key.

If files have different headers, normalize them before the merge whenever possible. A query can include transformation steps, but allowing Power Query to combine mismatched sources does not guarantee that the records have been mapped correctly.

Refresh the combined query

Use Data > Refresh All after the source files change. The refreshed table reflects values currently stored in those files, so save each edited workbook before refreshing the query. When adding files to the folder, refresh the folder source and then the combined query if the new records do not appear immediately.

Keep the folder in the same accessible location and review the query whenever source columns change. Renaming or moving the folder, deleting a workbook, or altering a header can interrupt the refresh. Because the output is a query result rather than a full copy of every workbook, retain the originals whenever formulas, formatting, charts, images, comments, or workbook-level behavior still matter.

Choose between one table and separate tabs

The desired result determines which workflow fits. Power Query is designed to combine compatible records into one table. Merge Excel Files has a narrower purpose: it collects independent worksheets from several workbooks while keeping each source worksheet on its own data-only tab.

RequirementPower Query folder combineMerge Excel Files
Result shapeOne table containing rows from compatible filesOne workbook with every source worksheet on a separate data-only tab
Source selectionA folder of files with a consistent structure2–10 local .xlsx workbooks with a combined size of 20 MB or less
Schema handlingTransformation steps can standardize columns before loadingNo row appending, header alignment, record joining, deduplication, or schema inference
OutputA worksheet loaded from a refreshable queryA new data-only .xlsx download
Best fitRepeated files that represent one logical tableBrowsing independent worksheets in one local handoff file

For the separate-tab result, use the supported Merge Excel Files workflow:

  1. Choose two to ten local, non-empty .xlsx workbooks whose combined size is no more than 20 MB, placing them in the order you want them considered.
  2. Confirm that each source worksheet should remain a separate data-only tab in the combined workbook.
  3. Select Merge workbooks, download the new .xlsx file, and inspect the prefixed worksheet names in your destination spreadsheet application.

Each output tab name is derived from its source workbook and worksheet, with a separator added and duplicates made unique. Unsafe Excel sheet-name characters are removed, names remain within Excel’s sheet-name limit, and a numeric suffix is added when names would otherwise collide. Workbook order follows the selection order, while worksheets retain their original order within each workbook.

The files are processed locally in the browser. Nothing is uploaded to Lizely, stored in an account, sent to an API, or used to create a cloud share link, and the source files are not modified. The output is deliberately data-only: a formula’s cached stored value may appear as ordinary data, but the formula itself is not retained as a calculation contract. The tool does not calculate formulas, run macros, open hyperlinks, refresh external connections, execute scripts, or inspect embedded content. It also does not promise to retain charts, images, comments, formatting, widths, conditional rules, merged-cell layouts, named ranges, filters, data validation, hidden-sheet state, print settings, protection, or workbook metadata.

Each source must pass classic single-disk OOXML ZIP checks before its content is read: no more than 2,000 entries and no more than 50 MB of declared expanded data per file. The combined result can contain up to 50 worksheets, each source sheet must remain within Excel’s addressed-cell limit, and the generated .xlsx is limited to 20 MB. Zip64, encrypted, multi-disk, malformed, legacy .xls, macro-enabled, oversized, or over-limit packages stop with an error instead of producing a partial merge. The tool cannot repair damaged workbooks, convert old Excel formats, select a subset of sheets, remove duplicate tabs, or validate a business import.

Handle mismatched data shapes

Power Query is appropriate when the files represent repeated versions of the same logical table. If headers, column meanings, or data types differ, normalize the inputs first. If the task requires joining tables on keys, aligning business fields, applying record-specific deduplication rules, or reconciling formulas, use a database, an ETL workflow, or a purpose-built row-combining tool. Merge Excel Files does not perform those operations.

Keep the original workbooks whenever the result must remain a visual report or a working Excel model. Both a query result and a data-only merged download are intended for organized data handoff, not full-fidelity workbook cloning.

Complete the final validation

Before distribution, confirm that the output contains the expected files, columns, data types, and records. Open the result in the destination spreadsheet application, refresh a Power Query result once, and inspect representative values; for a Merge Excel Files download, inspect the prefixed worksheet names and stored values without refreshing the data-only output. Then verify that the chosen method matches the intended outcome: one combined table through Power Query, or separate data-only worksheets through Merge Excel Files.