Once you become a PivotTable fan, you will start to see lots of uses for this powerful analysis tool. But what can you do when the data you want to use is in separate tables in multiple sheets across your workbook? Or, what if you create PivotTables the same way many times?
This article will cover three ways to create PivotTables that might not already be on your radar.
Create a Pivot Table from Multiple Sheets
Let’s begin with the trickiest: How do I create a PivotTable when the data is spread over multiple sheets across the workbook? The steps below will demonstrate how to create PivotTables using multiple sheets as a source of data and apply only to Excel 2013 or later.
Set Up Your Data
Make sure all your data is in Named Tables. If possible, when working with multiple sheets, it is very helpful to have one column of information in each spreadsheet that is the same. A column of information that is consistent across all of your sheets is similar to a "primary key" in a database and will reduce errors (such as if the sheets become sorted differently).
In our example, this repeating data is the "Invoice #" column and appears in all three sheets we will be working with.


Hint! When specifying your named table ranges, make sure you do not capture any empty rows or columns!
Add Tables to your Data Model
Begin creating your PivotTable by clicking anywhere in the named table on the first worksheet. In the example, we clicked on the "Orders" table. Then click Insert > PivotTable to open the Create PivotTable dialog box:
· The Table/Range field should correctly include the Table's Name "Orders".
· The New Worksheet is selected so the new PivotTable will be placed in new worksheet.
· Make sure Add this data to the Data Model is checked!
· Click OK.

A new sheet opens with an empty PivotTable and the PivotTable Fields pane open. Click the All tab in the pane to see all the tables you have named in your workbook.
Open the toggle beside each table and place the fields you want in the correct field areas. In this example, we want to see amounts made with specific payment forms by state.

Create Relationships Between Tables
We now want to tell Excel which information is the same from table to table so our PivotTable can correctly associate the data between them.
Excel may offer you a dialog in the PivotTable Fields pane with options to Auto-Detect relationships between the tables and to Create your own, which is advised.
You can also click the Relationships button in the Calculations group on the Analyze contextual tab to open the Manage Relationships dialog box.

In the Manage Relationships dialog, click the New button to specify a new relationship between your tables.
