How to Consolidate Multiple Worksheets into One Pivot Table

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

Download Practice Workbook
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


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.

ExcelInsider Team
We will be happy to hear your thoughts

Leave a reply

Excel Insider
Logo