Excel Tools

Merge Excel Files

Combine several Excel, OpenDocument or CSV files into one workbook. Keep every worksheet as its own tab, or stack all rows into a single table with columns matched by header name.

✓ Private · no uploads

  1. Choose spreadsheets
  2. Set merge options
  3. Download result
SpreadsheetsMerged workbook

Runs locally in your browser

Files to merge

    How to combine
    Worksheets to include
    Download

    No file selected yet.

    Merging keeps values, formulas, number formats, merged cells and column widths. Fonts, fills, borders, charts, images and macros are not copied. Stacked rows keep their values; formulas become results because their rows move.

    How to use

    1. Choose or drop two to 20 spreadsheets. Reorder them with the arrow buttons; the first file comes first in the result.
    2. Pick how to combine: keep each worksheet as a tab, or stack rows into one sheet. Choose all worksheets or only the first of each file.
    3. Select Merge files, check the summary and preview, then download merged.xlsx.

    Examples

    Combine twelve monthly sales exports into one table

    With header matching on, Amount and Region line up even though February lists them in a different order, and the new Owner column is added at the end.

    Input
    jan.xlsx (Region, Amount) · feb.xlsx (Amount, Region, Owner)
    Output
    Source | Region | Amount | Owner
    jan.xlsx | North | 1,200.00 |
    feb.xlsx | South | 980.00 | Avery

    Collect department budgets into one workbook

    Tabs with the same name are renamed so each stays unique, and formulas that refer to a renamed tab are rewritten to point at it.

    Input
    sales.xlsx (Budget) · marketing.xlsx (Budget, Notes)
    Output
    merged.xlsx · tabs Budget, Budget (2), Notes

    Two ways to merge spreadsheets

    Keep every worksheet as its own tab when files are separate reports that should stay separate, such as one budget per department. Each sheet is copied into a single workbook in the order of your file list. Duplicate tab names are made unique, and Excel’s 31-character limit and forbidden characters are respected. Defined names come along with their sheets; if two files define the same global name, the first file’s definition is kept and the summary tells you how many were skipped.

    Stack all rows into one sheet when files share a structure, such as monthly exports from the same system. The result is one table you can filter, sort or pivot. With header matching enabled, columns are aligned by name rather than position, so a file that adds or reorders columns still lines up. The optional Source column records which file — and, for multi-sheet files, which sheet — each row came from. Completely empty rows are skipped.

    Safe formulas

    Formulas are only kept when they will still work in the merged file. A formula that refers to a sheet you left out, to a table by name, or to another workbook is saved as its last calculated value instead, and the summary reports how many were converted. This prevents broken references and repair prompts when the merged workbook is opened.

    Next steps

    After merging, Remove Duplicates can clean repeated rows, and Split Excel File does the reverse when you need separate files again. To check what changed between two versions of a merged report, use Compare Excel Files.

    Frequently asked questions

    Which formats can I merge?

    XLSX, XLSM, XLSB, XLS, ODS and CSV, in any mix. The result is always a modern .xlsx workbook. Macros are not copied.

    Are formulas and formatting kept?

    When worksheets are kept as tabs, formulas, number and date formats, merged cells, column widths, hyperlinks and comments are copied. Fonts, fills, borders, charts and images are not. When rows are stacked, each cell keeps its value and number format, and formulas are saved as their results because the rows move.

    What happens when two files have a sheet with the same name?

    The later sheet gets a suffix such as “Sales (2)”. Formulas inside that file that referred to the old name are updated so they keep pointing at the right sheet.

    How does header matching work when stacking rows?

    The first non-empty row of each sheet is treated as column names. Columns with the same name, ignoring case and extra spaces, are placed together; new names become new columns. Turn it off to stack columns strictly by position.

    Is there a limit?

    Up to 20 files, 20 MB each and 60 MB together, with a result of up to three million cells. Everything is processed in your browser; nothing is uploaded.

    Related tools