{"id":4182,"date":"2019-04-03T17:09:53","date_gmt":"2019-04-03T17:09:53","guid":{"rendered":"http:\/\/officetuts.net\/excel\/?p=4182"},"modified":"2024-03-26T11:48:37","modified_gmt":"2024-03-26T11:48:37","slug":"pivot-table-from-multiple-worksheets","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/","title":{"rendered":"Create Pivot Table from Multiple Worksheets"},"content":{"rendered":"\n
Create-Pivot-Table-from-Multiple-Worksheets<\/a>Download File<\/a><\/div>\n\n\n\n

If you are using Excel 365 you can create PivotTable from data that are coming from several different worksheets. All the tools you need are integrated with Excel.<\/p>\n\n\n\n

In earlier Excel versions, you had to use PowerPivot to achieve the same result.<\/p>\n\n\n\n

In this tutorial, we\nhave three sheets: Customer<\/strong>, Order<\/strong>, and Payment<\/strong>.<\/p>\n\n\n\n

Customer<\/strong><\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Order<\/strong><\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Payment<\/strong><\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

All the necessary data are split between them. We have to combine them using a tool that comes with PivotTable.<\/p>\n\n\n\n

Each of these tables\nhas a column Order_id<\/strong> with unique\nvalues.<\/p>\n\n\n\n

Creating and naming tables<\/h2>\n\n\n\n

First, let\u2019s create a table from each of them. Click the\ndata inside the first sheet (Customer<\/strong>)\nand navigate to Insert >> Tables\n>> Table<\/strong> or use Ctrl + T<\/strong>.<\/p>\n\n\n\n

Create tables on other sheets (Order<\/strong> and Payment<\/strong>).<\/p>\n\n\n\n

Click inside each table and navigate to Table Tools >> Design >> Properties<\/strong> and change their names to Customer<\/strong>, Order<\/strong>, and Payment<\/strong> accordingly.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Inserting PivotTable<\/h2>\n\n\n\n

It\u2019s time to insert a Pivot Table. Click the first Table and navigate to Insert >> Table >> PivotTable<\/strong>. Normally you would click OK and start working with a PivotTable.<\/p>\n\n\n\n

But this time check the checkbox Add this data to the Data Model<\/strong> in order to work with multiple tables.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Rename the new sheet to PivotTable.<\/p>\n\n\n\n

Now, if you look at the PivotTable Fields, you will notice\nthat there are additional buttons there: Active<\/strong>\nand All<\/strong>.<\/p>\n\n\n\n

Click All<\/strong> to display all tables.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

We can\u2019t use these tables\nyet, because Excel doesn\u2019t know what are\nthe relations between them.<\/p>\n\n\n\n

Creating relationships<\/h2>\n\n\n\n

Al columns are related to each other with the Order_id<\/strong> column, which is the same in all three tables.<\/p>\n\n\n\n

Click the PivotTable and navigate to PivotTable Tools >> Calculations >> Relationships<\/strong>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Click it to open the Manage Relationships<\/strong> window.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Inside this window, we\nare going to create two relationships. Click the New<\/strong> button to create the first relationship.<\/p>\n\n\n\n

The first one is going to be Payment<\/strong> to Order<\/strong>. Remember that these relationships are identified by the Order_id<\/strong>. Create the relationship as you can see in the image below and click OK<\/strong>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

The second relationship is between Payment<\/strong> and Customer<\/strong>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

We don\u2019t have to create a relationship between Order<\/strong> and Customer<\/strong> because there is an implicit relation through the Payment<\/strong> table.<\/p>\n\n\n\n

All the relations that we create are inside the Manage Relations<\/strong> window.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Click the Close<\/strong> button.<\/p>\n\n\n\n

You won\u2019t notice any difference inside the PivotTables Fields<\/strong>, but all the work\nwas behind the scenes. Without relations,\nthe pivot wouldn\u2019t behave the way we would like.<\/p>\n\n\n\n

PivotTable Fields<\/h2>\n\n\n\n

Let\u2019s take a look at the fields of our table. We don\u2019t need Order_id<\/strong> anymore. It was necessary for relations between the tables and now it\u2019s not important anymore.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

What we are going to do now, is to display the sales split between customers grouped by states and product types in different product categories.<\/p>\n\n\n\n

Drag table fields into Drag fields as shown in the image below.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Your PivotTable should look like this.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Excel 2013 and later versions have this powerful feature that was reserved only for PowerPivot users in the previous versions, where you can pick different fields from different worksheets<\/a> into the same PivotTable.<\/p>\n\n\n\n

Just remember that there always has to be some relation between these tables, otherwise, Excel is going to return strange results.<\/p>\n","protected":false},"excerpt":{"rendered":"

If you are using Excel 365 you can create PivotTable from data that are coming from several different worksheets. All the tools you…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[170,190],"yoast_head":"\nCreate Pivot Table from Multiple Worksheets<\/title>\n<meta name=\"description\" content=\"Learn how to create a PivotTable from data coming from multiple Excel worksheets. This tutorial will guide you through the necessary steps.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create Pivot Table from Multiple Worksheets\" \/>\n<meta property=\"og:description\" content=\"Learn how to create a PivotTable from data coming from multiple Excel worksheets. This tutorial will guide you through the necessary steps.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-04-03T17:09:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-26T11:48:37+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/04\/customer_sheet.png\" \/>\n<meta name=\"author\" content=\"Tomasz Decker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tomasz Decker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/\"},\"author\":{\"name\":\"Tomasz Decker\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"headline\":\"Create Pivot Table from Multiple Worksheets\",\"datePublished\":\"2019-04-03T17:09:53+00:00\",\"dateModified\":\"2024-03-26T11:48:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/\"},\"wordCount\":574,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/04\/customer_sheet.png\",\"keywords\":[\"file\",\"pinterest\"],\"articleSection\":[\"examples\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/\",\"url\":\"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/\",\"name\":\"Create Pivot Table from Multiple Worksheets\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/04\/customer_sheet.png\",\"datePublished\":\"2019-04-03T17:09:53+00:00\",\"dateModified\":\"2024-03-26T11:48:37+00:00\",\"description\":\"Learn how to create a PivotTable from data coming from multiple Excel worksheets. This tutorial will guide you through the necessary steps.\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/#primaryimage\",\"url\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/04\/customer_sheet.png\",\"contentUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/04\/customer_sheet.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Pivot Table from Multiple Worksheets\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/officetuts.net\/excel\/#website\",\"url\":\"https:\/\/officetuts.net\/excel\/\",\"name\":\"\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/officetuts.net\/excel\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\",\"name\":\"Tomasz Decker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"caption\":\"Tomasz Decker\"},\"logo\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\"},\"description\":\"Spreadsheet and Python enthusiast.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create Pivot Table from Multiple Worksheets","description":"Learn how to create a PivotTable from data coming from multiple Excel worksheets. This tutorial will guide you through the necessary steps.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/","og_locale":"en_US","og_type":"article","og_title":"Create Pivot Table from Multiple Worksheets","og_description":"Learn how to create a PivotTable from data coming from multiple Excel worksheets. This tutorial will guide you through the necessary steps.","og_url":"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/","article_published_time":"2019-04-03T17:09:53+00:00","article_modified_time":"2024-03-26T11:48:37+00:00","og_image":[{"url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/04\/customer_sheet.png"}],"author":"Tomasz Decker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tomasz Decker","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/"},"author":{"name":"Tomasz Decker","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"headline":"Create Pivot Table from Multiple Worksheets","datePublished":"2019-04-03T17:09:53+00:00","dateModified":"2024-03-26T11:48:37+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/"},"wordCount":574,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/04\/customer_sheet.png","keywords":["file","pinterest"],"articleSection":["examples"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/","url":"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/","name":"Create Pivot Table from Multiple Worksheets","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"primaryImageOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/#primaryimage"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/04\/customer_sheet.png","datePublished":"2019-04-03T17:09:53+00:00","dateModified":"2024-03-26T11:48:37+00:00","description":"Learn how to create a PivotTable from data coming from multiple Excel worksheets. This tutorial will guide you through the necessary steps.","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/#primaryimage","url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/04\/customer_sheet.png","contentUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/04\/customer_sheet.png"},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/examples\/pivot-table-from-multiple-worksheets\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"Create Pivot Table from Multiple Worksheets"}]},{"@type":"WebSite","@id":"https:\/\/officetuts.net\/excel\/#website","url":"https:\/\/officetuts.net\/excel\/","name":"","description":"","publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/officetuts.net\/excel\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42","name":"Tomasz Decker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","caption":"Tomasz Decker"},"logo":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/"},"description":"Spreadsheet and Python enthusiast."}]}},"_links":{"self":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/4182"}],"collection":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/comments?post=4182"}],"version-history":[{"count":6,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/4182\/revisions"}],"predecessor-version":[{"id":17243,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/4182\/revisions\/17243"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=4182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=4182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=4182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}