How to Combine Spreadsheets in Excel: 5 Ways

How-to basics · Updated November 23, 2026

To combine spreadsheets in Excel, use Power Query (Data > Get Data > From File > From Workbook) to merge multiple files into one table, or use the Consolidate tool (Data > Consolidate) to sum or average data from several sheets. For a quick one-time merge, copy and paste ranges side by side or stacked, but Power Query is the most reliable method for recurring updates.

Why Combining Spreadsheets Is Tricky

Excel gives you several ways to combine data, but each method has different strengths. The simplest approach—copying and pasting—works for a one-off task, but it breaks when your source files change. If you need to refresh the combined data later, Power Query is the better choice because it remembers the connection and can re-import with a single click. The Consolidate tool is a middle ground: it works well for numeric summaries but doesn’t preserve all formatting or formulas. Understanding the differences helps you pick the right tool for your situation.

Method 1: Copy and Paste (Quick and Dirty)

This is the fastest way to combine two small spreadsheets that you won’t need to update. Open both workbooks, select the range you want to move, press Ctrl+C (Mac: Cmd+C), then go to the destination sheet and press Ctrl+V (Mac: Cmd+V).

  • Stack vertically: Paste below the last row of the first dataset. Ensure column headers match exactly.
  • Place side by side: Paste to the right of the first dataset. This works when the rows correspond to the same records (e.g., one sheet has names, another has sales).
  • Paste special: Use Ctrl+Alt+V (Mac: Cmd+Ctrl+V) to paste only values, formats, or column widths as needed.

Be careful: pasted data is static. If the source file changes, the combined sheet will not update. Also, watch for duplicate headers—you’ll need to delete the extra header row manually.

Method 2: Power Query (Best for Recurring Merges)

Power Query is Excel’s data transformation tool, available in Excel 2016 and later, including Microsoft 365. It lets you combine multiple files or sheets into one table that refreshes with one click.

  1. Go to Data > Get Data > From File > From Workbook (or From Folder if combining many files).
  2. Select the file(s) and click Import. In the Navigator window, choose the sheet or table you want, then click Transform Data.
  3. In the Power Query editor, click Append Queries (to stack rows) or Merge Queries (to join columns based on a key).
  4. Click Close & Load to bring the combined data back into Excel as a table.

For multiple files in a folder, use Data > Get Data > From File > From Folder. Power Query will combine all files with the same structure. When you add a new file to the folder, just click Refresh (Data > Refresh All) to update the combined table.

Method 3: The Consolidate Tool (For Numeric Summaries)

The Consolidate tool is designed for summing, averaging, or counting values from multiple sheets. It works best when your data has labels in the first column and top row, and you want a summary—not a full data dump.

  1. Click an empty cell where you want the consolidated result to appear.
  2. Go to Data > Consolidate.
  3. In the Function dropdown, choose Sum (or Average, Count, etc.).
  4. Click in the Reference box, select the range from the first sheet, click Add, then repeat for each sheet.
  5. Check Top row and Left column if your data has labels, then click OK.

For example, if you have monthly sales in three sheets (Jan, Feb, Mar) with products in column A and amounts in column B, Consolidate will produce a single table with each product’s total across the three months. The result is static—it won’t update if the source sheets change, unless you use the Create links to source data option, which creates formulas that update.

Method 4: Formulas (VLOOKUP, XLOOKUP, and Dynamic Arrays)

If you need to pull data from one sheet into another based on a matching key, use lookup formulas. For example, to bring a customer’s city from a second sheet into your main sheet:

Assume your main sheet has customer IDs in A2:A10, and the lookup sheet has IDs in A2:A10 with cities in B2:B10. In cell B2 of the main sheet, enter:

=XLOOKUP(A2, LookupSheet!$A$2:$A$10, LookupSheet!$B$2:$B$10)

XLOOKUP is available in Excel 2021 and Microsoft 365. If you’re on an older version, use VLOOKUP:

=VLOOKUP(A2, LookupSheet!$A$2:$B$10, 2, FALSE)

For stacking multiple tables vertically, you can use the VSTACK function (Microsoft 365 only). With data in Sheet1!A2:C10 and Sheet2!A2:C10, enter:

=VSTACK(Sheet1!A2:C10, Sheet2!A2:C10)

This returns a single array that spills down. Similarly, HSTACK places tables side by side. These functions are dynamic—if you add rows to the source ranges, the combined output updates automatically.

Choosing the Right Method

Here’s a quick guide to help you decide:

  • One-time merge, small data: Copy and paste.
  • Recurring merge from multiple files: Power Query.
  • Summarize numbers (sum, average) from several sheets: Consolidate.
  • Pull specific columns based on a key: XLOOKUP or VLOOKUP.
  • Stack tables dynamically without Power Query: VSTACK or HSTACK.

Consider the size of your data. Power Query handles millions of rows efficiently, while formulas can slow down with very large datasets. Also, think about whether you need the combined data to be editable—Power Query output is a table you can edit, but VSTACK results are arrays that you cannot modify cell-by-cell.

Common Problems and How to Fix Them

  • Headers don’t match: Power Query’s Append requires identical column names. Rename columns in each query before appending.
  • Duplicate rows appear: In Power Query, use Remove Rows > Remove Duplicates after combining.
  • Data types change (e.g., numbers become text): In Power Query, select the column and click Data Type in the Home tab to set it explicitly.
  • Consolidate gives #N/A errors: Ensure the ranges you selected have matching labels and that you checked the Left column and Top row options.
  • Formulas return #REF! after deleting a sheet: Avoid referencing entire columns in VLOOKUP; use fixed ranges like $A$2:$B$100.

If you get a “This action won’t work on multiple selections” error in Power Query, it usually means you tried to append tables with different column structures. Fix the column names first.

Frequently Asked Questions

Can I combine sheets from different workbooks without opening them? Yes. Power Query can import from closed workbooks stored on your computer or network. Use Data > Get Data > From File > From Workbook and select the file—you don’t need to open it manually.

Is there a way to combine sheets automatically every time I open the workbook? Yes, if you use Power Query, the data refreshes when you open the file if you set the query to refresh on open (Data > Queries & Connections > right-click query > Properties > Refresh on file open). For formulas like VSTACK, they recalculate automatically when the source data changes.

What’s the difference between Append and Merge in Power Query? Append stacks rows (like putting two tables on top of each other). Merge joins columns based on a matching key (like a database join). Use Append when you have the same columns in multiple sheets; use Merge when you have different columns but a common ID.

Why does my VLOOKUP return #N/A even though the value exists? The most common cause is a formatting mismatch—one cell is text and the other is a number. Check with the ISTEXT function, or use the TRIM function to remove extra spaces. Also, ensure the lookup column is the first column in the table array.

Can I combine sheets with different column orders? Yes, but you need to align them. In Power Query, you can reorder columns by dragging them in the preview. For VSTACK, the columns must be in the same order, so you may need to use CHOOSECOLS to reorder first.

Does combining spreadsheets affect the original data? No, all methods create a separate output. The original sheets remain untouched. However, if you use formulas that reference other sheets, deleting or moving those sheets will break the formulas.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.