Pivot Table Two Sheets: How to Combine & Analyze

Charts & pivot tables · Updated November 23, 2026

Yes, you can create a pivot table from two sheets in Excel, but not directly in one step. The standard approach is to first combine the data from both sheets into a single table (using Power Query, VSTACK, or a simple copy-paste), then insert your pivot table from that combined range. This article explains the three reliable methods, when to use each, and how to avoid the most common pitfalls.

Why Can’t You Just Select Two Sheets?

Excel’s classic pivot table feature expects a single rectangular data range: one header row at the top, and no blank rows or columns in between. When you try to select ranges on two different sheets, Excel doesn’t offer a native “combine sheets” button in the Insert PivotTable dialog. The old “Multiple consolidation ranges” option (available in Excel 2003 and earlier, and still present in some dialogs) is a hidden legacy feature that creates a pivot table with a very limited layout—it puts all values into one column and adds a “Page1” field, which is rarely what users need.

So the practical answer is: you must first bring the data from both sheets into one place. The method you choose depends on whether your sheets have identical columns, how often you need to refresh, and which Excel version you have.

Method 1: Copy and Paste (Simplest, One-Time)

If you only need to do this once and your sheets have the same columns, copy the data from Sheet2 and paste it directly below the last row of Sheet1. Then create your pivot table from the combined range.

  1. On Sheet1, note the last row with data (e.g., row 100).
  2. Go to Sheet2, select the entire data range (including headers), and press Ctrl+C (Mac: Cmd+C).
  3. Return to Sheet1, click on cell A101 (one row below the last data row), and press Ctrl+V (Mac: Cmd+V).
  4. Click anywhere in the combined data, then go to Insert > PivotTable.
  5. In the dialog, the range should automatically cover all the data. Click OK.

This method is fine for a static snapshot, but if you add new rows to either sheet later, you’ll need to manually update the pivot table’s source range or repeat the copy-paste.

Method 2: VSTACK (Best for Microsoft 365)

If you have Excel for Microsoft 365 or Excel 2024, the VSTACK function can combine two or more ranges vertically into a single dynamic array. This is the cleanest modern solution because the combined data updates automatically when you refresh the pivot table.

Assume Sheet1 has data in A1:D100 (with headers), and Sheet2 has data in A1:D50 (same columns). On a new sheet (say, “Combined”), type:

=VSTACK(Sheet1!A1:D100, Sheet2!A1:D50)

This spills the combined data starting at the formula cell. Then create your pivot table using that spilled range (e.g., =Combined!$A$1# in the source range).

Note: VSTACK requires Microsoft 365 or Excel 2024. It is not available in Excel 2019 or earlier. Also, if your sheets have different column orders, VSTACK will not align them—it just stacks rows, so ensure the columns match.

Method 3: Power Query (Most Robust, No Formulas)

Power Query (Get & Transform Data) is the professional tool for combining multiple sheets, especially when you have many sheets or need to refresh regularly.

  1. Go to Data > Get Data > From Other Sources > Blank Query.
  2. In the Power Query editor, go to Home > New Source > Excel and select your workbook.
  3. In the Navigator, select the first sheet (e.g., Sheet1) and click Transform Data (not Load).
  4. In the editor, click Append Queries > Append Queries as New.
  5. In the dialog, select the second sheet from the dropdown and click OK.
  6. Go to Home > Close & Load to load the combined table to a new worksheet.
  7. Now insert a pivot table from that loaded table.

Power Query automatically remembers the steps, so you can refresh the combined table (right-click > Refresh) whenever the source sheets change. This is the recommended approach for recurring reports.

How to Choose the Right Method

Here’s a quick decision guide:

  • One-time analysis, identical columns: Copy-paste is fastest.
  • You have Microsoft 365 and want a formula-based dynamic range: Use VSTACK.
  • You need to refresh regularly, or sheets may have different columns: Use Power Query.
  • Your sheets have different column names: Power Query lets you rename columns before appending; copy-paste would misalign data.

Common Problems and Fixes

Here are the typical issues users hit when combining sheets for pivot tables:

  • Blank rows or columns in source data: These cause pivot tables to ignore data or create extra fields. Remove them before combining.
  • Headers not matching: If Sheet1 has “Sales” and Sheet2 has “Revenue”, the pivot table will treat them as two separate fields. Standardize column names.
  • Date formats inconsistent: For example, one sheet has text dates and the other has real dates. Use Power Query to change types before loading.
  • Pivot table doesn’t include new rows added to a sheet: If you used copy-paste or a fixed range, you must update the source. With VSTACK or Power Query, refresh the pivot table (right-click > Refresh) and it picks up new rows.
  • VSTACK returns a #SPILL! error: This means something is blocking the spill range. Clear the cells below the formula, or ensure the formula is in a cell with nothing to the right.

Frequently Asked Questions

Can I create a pivot table from two sheets without combining them first?
No, not with the standard pivot table feature. The legacy “Multiple consolidation ranges” option exists but produces a limited pivot table. The only workaround is to combine the data first.

Does VSTACK work in Excel 2019?
No. VSTACK is only available in Excel for Microsoft 365 and Excel 2024. For older versions, use Power Query or copy-paste.

What if my two sheets have different columns?
Power Query is the best choice. Use the Append operation, and Power Query will align columns by header name, filling in nulls for missing columns. You can also reorder columns before appending.

How do I refresh a pivot table after adding new data to the source sheets?
If you used VSTACK, the pivot table will automatically include new rows when you refresh (right-click > Refresh). If you used Power Query, refresh the query first (Data > Refresh All), then refresh the pivot table. If you used copy-paste, you must manually extend the source range.

Can I use a pivot table to combine two sheets with different data types (e.g., one has text, one has numbers)?
Yes, but ensure the columns are consistent. If a column has text in one sheet and numbers in another, the pivot table will treat them as separate fields. Convert the data types in Power Query before loading.

Final Tip: Use a Table for Dynamic Ranges

If you’re using copy-paste, convert the combined data into an Excel Table (select the data, press Ctrl+T). Then when you insert a pivot table, use the table name (e.g., Table1) as the source. This way, any new rows added to the table are automatically included when you refresh the pivot table—no need to manually update the range.

Related

Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.

More in Charts & pivot tables

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

Spotted an error in this guide? Let us know.