How to Consolidate Multiple Worksheets into One Pivot Table

Table of Contents

Table of Contents

In order to create a summary of all data, you might need to consolidate data from multiple worksheets into a single PivotTable. But this might be a little challenging and lead to errors if you manually copy and paste data into a single sheet. Excel offers several built-in tools that can summarize your data in a Pivot Table from multiple worksheets. In this article, we will walk you through three effective methods to consolidate data from multiple worksheets into a single PivotTable.

Key Takeaways

To consolidate multiple worksheets into one Pivot Table, here is one simple solution by using the PivotTable and PivotChart Wizard feature in Power Query.

โžค Press  Alt  +  D  +  P ย shortcut to open PivotTable and PivotChart Wizard window.
โžค Choose Multiple consolidation ranges and PivotTable to create a PivotTable report.
โžค Select Create a single page field for me and click Next.
โžค Add all the data ranges from the worksheets and click Next.
โžค Choose New worksheet to create the PivotTable on a new sheet, combining multiple sheets.

overview image


1

Using PivotTable and PivotChart Wizard Feature

The PivotTable and PivotChart Wizard is a classic tool in Excel that can quickly consolidate data from multiple worksheets. Here, we will use the tool to add data from all sheets and create a single Pivot Table.

Let’s imagine we have three separate worksheets named East, West, and North, each with sales data that we want to combine. The data from all the worksheets is converted into a table and named according to the worksheets.

Using PivotTable and PivotChart Wizard Feature

Using PivotTable and PivotChart Wizard Feature

Using PivotTable and PivotChart Wizard Feature

โžค Press  Alt  +  D  +  P ย shortcut on your keyboard to launch the “PivotTable and PivotChart Wizard“.

Using PivotTable and PivotChart Wizard Feature

โžค Choose “Multiple consolidation ranges” to indicate that you want to combine data from different locations.
โžค Next, select “PivotTable” to create a PivotTable report.
โžค Click Next.

Using PivotTable and PivotChart Wizard Feature

โžค Select “Create a single page field for me“.
โžค Click Next.

Using PivotTable and PivotChart Wizard Feature

Now, you need to add the data ranges from each of your worksheets.

โžค Go to your first worksheet (e.g., East) and select the data range (e.g., A1:E11).
โžค Click Add.

Using PivotTable and PivotChart Wizard Feature

The range will appear in the “All ranges” box.

โžค Repeat this for each of your remaining worksheets (West and North).
โžค Then, click Next.

Using PivotTable and PivotChart Wizard Feature

โžค Choose “New worksheet” to create the PivotTable on a new sheet.
โžค Click Finish.

Using PivotTable and PivotChart Wizard Feature

A new worksheet will open with a blank PivotTable and the “PivotTable Fields” pane. You will notice that the fields are named Row, Column, Value, and Page1.

โžค Drag the fields according to the image below.

Using PivotTable and PivotChart Wizard Feature

As a result, you will get the single Pivot Table consolidating data from the three worksheets.

Using PivotTable and PivotChart Wizard Feature


2

Applying Append Queries Feature from Power Query

For a more dynamic solution, you can use the Append Queries feature from Power Query tool. This method works well when your data is not consistently formatted or when your data might change in the future.

To begin, you need to open the Power Query Editor.

โžค Go to the Data tab on the ribbon.
โžค In the Get & Transform Data group, click Get Data.
โžค Click Launch Power Query Editor.

Applying Append Queries Feature from Power Query

โžค From the New Source list, click File > Excel Workbook.

Applying Append Queries Feature from Power Query

A file browser will appear.

โžค Locate and select your Excel file.
โžค Click Import.

Applying Append Queries Feature from Power Query

The “Navigator” window will now show all the sheets in your workbook.

โžค Checkmark the box for “Select multiple items“.
โžค Select the worksheets you want to consolidate (e.g., East, North, West).
โžค Click OK.

Applying Append Queries Feature from Power Query

In the Power Query Editor, you will see a separate query for each of your selected worksheets. Now we need to append them.

โžค In the Combine group, click the dropdown menu and select Append Queries as New.

Applying Append Queries Feature from Power Query

The “Append” dialog box will appear.

โžค Choose the “Three or more tables” option.
โžค Select the tables you want to append from the list (e.g., East1, North3, West2).
โžค Click Add to move them to the “Tables to append” list.
โžค Click OK.

Applying Append Queries Feature from Power Query

This will create a new query (e.g., Append1) containing all the data combined into a single table. Now that your data is consolidated, you can load it directly into a PivotTable.

โžค Change the Append1 name to All Sales.
โžค Click Close & Load To.

Applying Append Queries Feature from Power Query

The “Import Data” dialog box will appear.

โžค Select “PivotTable Report“.
โžค Choose “New worksheet“.
โžค Click OK.

Applying Append Queries Feature from Power Query

In the PivotTable Fields pane, you can now use the proper column headers from your consolidated data.

โžค Drag the Product Name field to the Rows area.
โžค Drag Quantity and Total Sales to the Values area.

Applying Append Queries Feature from Power Query

Finally, your PivotTable will now show the total quantity and total sales for each product, consolidated from all three worksheets.

Applying Append Queries Feature from Power Query


3

Using Blank Query in Power Query Editor

You can also use a blank query to connect to the current workbook and consolidate all worksheets in one go. Here, we will create a new blank query, use a simple formula to connect all the worksheets and then create the Pivot Table.

โžค Go to the Data tab.
โžค In the Get & Transform Data group, click Get Data.
โžค Select From Other Sources > Blank Query.

Using Blank Query in Power Query Editor

This will open the Power Query Editor with a blank query.

โžค Name the query as All Region Sales.

Now, we will use a simple formula to connect to all the data in the current workbook.

โžค In the formula bar, type the following formula.

=Excel.CurrentWorkbook()

โžค Press ENTER.

A table will appear, listing all the tables and named ranges in your workbook.

Using Blank Query in Power Query Editor

The table shows two columns: Content and Name. The Content column contains the actual data from each sheet. So, we will remove the Name column from the list.

โžค Right-click the Name column header.
โžค Select Remove Other Columns.

Using Blank Query in Power Query Editor

Now you are left with just the Content column.

โžค Click on the Expand icon (the two-headed arrow) on the Content column header.
โžค Uncheck the box “Use original column name as prefix“.
โžค Click OK.

Using Blank Query in Power Query Editor

Power Query will expand the data, combining all your worksheets into a single, flat table. Now, you can load this consolidated data into a PivotTable.

โžค Go to the File tab.
โžค Click Close & Load To.

Using Blank Query in Power Query Editor

The “Import Data” dialog box will appear.

โžค Select “PivotTable Report“.
โžค Choose “New worksheet“.
โžค Click OK.

Using Blank Query in Power Query Editor

Thus, your new PivotTable will be created.

โžค In the PivotTable Fields pane, drag Product Name to the Rows area.
โžค Drag Quantity and Total Sales to the Values area.

Using Blank Query in Power Query Editor

The final PivotTable will display the consolidated sales data from all your worksheets.

Using Blank Query in Power Query Editor


Downloadable Resources

Get our practice workbook or necessary files that we have worked with to prepare this article.

Consolidate Multiple Worksheets into One Pivot Table.xlsx


Frequently Asked Questions

Can I update the Pivot Table if the source worksheets change?

Yes, if you use Power Query, you can refresh the Pivot Table to include updated or new data without recreating the Pivot Table.

What is the difference between using the consolidate tool and Power Query for Pivot Table consolidation?

The consolidate tool is simple but limited to basic calculations (sum, count, etc.) and doesnโ€™t support dynamic updates well. Power Query is more flexible, dynamic, and recommended for larger or frequently updated datasets.

How do I handle duplicate records when consolidating multiple worksheets?

From the Power Query, you can use Remove Duplicates feature or add a unique key column to ensure only unique records are included in the final Pivot Table.


Concluding Words

Above, we have explored several ways to consolidate multiple worksheets into a single PivotTable. While the PivotTable and PivotChart Wizard is a quick and easy solution for simple tasks, Power Query offers a more dynamic approach that can handle complex data and future changes. If you have any queries, feel free to let us know in the comment section below.

Facebook
X
LinkedIn
WhatsApp
Picture of Wasim Akram

Wasim Akram

Wasim Akram holds a BSc in Industrial and Production Engineering and has around four years of hands-on Excel and Google Sheets experience. He specializes in formulas, lookups, PivotTables, dashboards, charts, data cleaning, macros, VBA, and Google Apps Script. He has created 300+ tutorials that helped over 100,000 users solve data problems. He enjoys exploring advanced formulas and building automated templates that simplify daily tasks.
We will be happy to hear your thoughts

      Leave a reply


      Excel Insider
      Logo