How to Create a Pivot Table from Multiple Tabs in Excel

Charts & pivot tables · Updated November 23, 2026

To create a pivot table from multiple tabs in Excel, use the built-in Data Model with Power Pivot (Excel 2013 or later on Windows) or the Get & Transform (Power Query) tool to combine the sheets first, then build a pivot table from the combined data. For a quick one-time merge, you can also use the PivotTable Wizard (Alt+D, P) which works in all Excel versions, though it has limitations. The best method depends on your Excel version and whether you need the data to refresh automatically.

Why a Normal Pivot Table Can’t Use Multiple Tabs Directly

A standard pivot table in Excel pulls data from a single contiguous range—one worksheet, one named range, or one table. If you try to select cells on two different sheets, Excel will show an error like “Reference is not valid” because it expects a single rectangular block. This is a fundamental design: pivot tables summarize one source. To include data from several tabs, you must first combine those tabs into one logical source. That combination can be done physically (by copying data into one sheet) or virtually (using the Data Model or Power Query).

Method 1: Use the PivotTable Wizard (Quick, But Manual)

The PivotTable and PivotChart Wizard is a legacy feature still available in Excel 365 (Windows). It lets you specify multiple ranges and create a pivot table with a single page field to distinguish the source tabs. Steps:

  1. Press Alt+D, P (or press Alt, then D, then P) to open the wizard.
  2. Choose Multiple consolidation ranges and click Next.
  3. Select I will create the page fields and click Next.
  4. For each tab, select the range (including headers) and add it. In the Field box, type a name for that tab (e.g., “Jan”, “Feb”).
  5. Click Finish. Excel creates a pivot table with a “Page1” field that lets you filter by tab.

Limitations: This method only works if all tabs have the same column layout and no blank rows/columns. It also creates a pivot table that treats all numeric columns as summable values—text columns become counts, and you can’t easily rename fields. It does not refresh automatically when you add new rows to the source tabs.

Method 2: Combine with Power Query (Recommended for Most Users)

Power Query (called Get & Transform in Excel 365) is the cleanest way to combine multiple tabs into one table that feeds a pivot table. It works on Windows and Mac (Excel 365), and the steps are nearly identical. Steps:

  1. Go to Data > Get Data > From File > From Excel Workbook (or From Table/Range if you already have tables).
  2. Select your workbook file. In the Navigator window, you’ll see each worksheet. Click Select multiple items (checkbox at top) and check all the tabs you want.
  3. Click Transform Data to open the Power Query editor.
  4. In the editor, you’ll see queries for each tab. To combine them, go to Home > Append Queries > Append Queries as New.
  5. Select the queries (or choose Three or more tables and add them), then click OK.
  6. If your tabs have a column that identifies the source (like a month name), you can add it manually: Add Column > Custom Column, then enter a formula like = "January" for each query before appending.
  7. Click Close & Load to load the combined data into a new worksheet as a table.
  8. Select any cell in that table, then go to Insert > PivotTable and create your pivot from the combined table.

This method refreshes automatically: if you add rows to any source tab, right-click the pivot table and choose Refresh (or set automatic refresh in Data > Queries & Connections).

Method 3: Use the Data Model with Power Pivot (For Large Data)

If you have millions of rows or want to relate tables without physically merging them, use the Data Model. This is available in Excel 2013+ on Windows (not in Excel for the web, and only partially on Mac). Steps:

  1. Convert each tab to an Excel Table (select data, press Ctrl+T).
  2. Go to Insert > PivotTable, check Add this data to the Data Model, and click OK.
  3. In the PivotTable Fields pane, you’ll see a list of tables. Drag fields from each table into the pivot—Excel will automatically create relationships if column names match (e.g., a common “Product ID”).
  4. If no relationship is created, go to Power Pivot > Manage (if the add-in is enabled) and create relationships manually via Diagram View.

This method is powerful because it doesn’t duplicate data, but it requires that your tabs have at least one common field (like a key). It also requires the Power Pivot add-in, which is free but must be enabled: File > Options > Add-ins > COM Add-ins &b> Microsoft Power Pivot for Excel.

How to Choose the Right Method

  • PivotTable Wizard: Use if you have a small number of tabs, identical layouts, and you don’t mind manual refresh. It’s the fastest for a one-off report.
  • Power Query: Use if you want a repeatable, refreshable process, or if your tabs might change (new rows, new sheets). This is the best choice for most users.
  • Data Model: Use if you have very large datasets (over ~1 million rows) or if you need to join tables on a key without merging them into one flat table.

Common Problems and Fixes

  • Error: “Reference is not valid” when selecting multiple ranges—this means you’re using a standard pivot table, not the wizard. Use Alt+D, P instead.
  • Different column headers across tabs: Power Query will append by position, not by name. Ensure all tabs have the same number of columns and the same order, or use Append Queries with Use original column name as prefix if you need to keep them separate.
  • Blank rows or columns in source data: The wizard and Power Query will treat blanks as errors. Clean your data first: remove blank rows, and ensure no empty columns.
  • Pivot table doesn’t refresh: If you used Power Query, right-click the pivot and choose Refresh. To auto-refresh on file open, go to Data > Queries & Connections > Properties and check Refresh data when opening the file.
  • Mac users can’t use the PivotTable Wizard: The Alt+D, P shortcut is Windows-only. On Mac, use Power Query (Data > Get Data > From File > From Excel Workbook) or copy-paste manually.

Comparing Power Query vs. Data Model

Both methods create a pivot table from multiple tabs, but they differ in how data is stored. Power Query physically combines the data into a single table (which you can see on a worksheet). The Data Model keeps the tables separate and creates relationships—this saves memory but requires a common key. For example, if you have a “Sales” tab with a Product ID and a “Products” tab with Product ID and name, the Data Model lets you drag the Product name into the pivot without merging. Power Query would require you to merge the tables first (using Merge Queries). For most users, Power Query is simpler because it’s visual and doesn’t require understanding relationships.

Frequently Asked Questions

Can I create a pivot table from multiple tabs without Power Query?

Yes, use the PivotTable Wizard (Alt+D, P) on Windows. It’s a legacy feature but still works in Excel 365. On Mac, you can use the Consolidate feature (Data > Consolidate) to sum data from multiple ranges, but that creates a summary table, not a true pivot table. The best cross-platform method is Power Query.

Why does my pivot table show “Count of” instead of “Sum of” when using multiple tabs?

This happens when the source data has blank cells or text in numeric columns. The wizard and Power Query treat blank cells as text, so Excel defaults to Count. Clean your data: replace blanks with 0, and ensure all numeric columns contain numbers only. Then refresh the pivot and change the value field setting to Sum (right-click > Value Field Settings > Sum).

How do I add a new tab to an existing pivot table that uses Power Query?

In Power Query, go to Home > Append Queries > Append Queries as New and select the new query. But first, you need to load the new tab as a query: go to Data > Get Data > From File > From Excel Workbook, select the new tab, and click Transform Data. Then append and refresh the pivot table.

Can I use the Data Model in Excel for the web?

No, the Data Model and Power Pivot are not available in Excel for the web. You can only use Power Query in the desktop version. If you work in the browser, you’ll need to combine the tabs manually or use a different tool like Google Sheets (which has a similar feature called QUERY with IMPORTRANGE).

Is there a way to automatically combine tabs that have different column orders?

Yes, Power Query can handle this by using Append Queries with the option Use original column name as prefix—but that creates separate columns. Instead, you should reorder columns in each query before appending. In Power Query, select the query, then use Choose Columns or Reorder Columns to match the order. If the headers are different, you can rename them.

What if my tabs have different numbers of rows?

That’s fine—Power Query appends rows sequentially, so the combined table will have the sum of all rows. The PivotTable Wizard also handles this, but it requires that all ranges have the same number of columns.

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.