{"id":1276,"date":"2015-05-26T16:18:13","date_gmt":"2015-05-26T14:18:13","guid":{"rendered":"https:\/\/www.myexcelonline.com\/?p=1276"},"modified":"2024-02-06T15:45:32","modified_gmt":"2024-02-06T14:45:32","slug":"getpivotdata-function","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/getpivotdata-function\/","title":{"rendered":"GETPIVOTDATA Function"},"content":{"rendered":"<p><em><strong>What does it do?<\/strong><\/em><\/p>\n<p>A formula that extracts data stored in a <a class=\"wpil_keyword_link\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/101-excel-pivot-tables\/\" target=\"_blank\" rel=\"noopener\" title=\"Pivot Table\" data-wpil-keyword-link=\"linked\">Pivot Table<\/a><\/p>\n<p><em><strong>Formula breakdown:<\/strong><\/em><\/p>\n<p>=GETPIVOTDATA(<span style=\"color: #ff0000;\"><span style=\"color: #339966;\"><span style=\"color: #0000ff;\">data_field,\u00a0<span style=\"color: #008000;\">pivot_table,\u00a0<span style=\"color: #ff0000;\">[field1, item1],\u00a0<span style=\"color: #ff6600;\">[field2,item2]<span style=\"color: #000000;\">,&#8230;<\/span><\/span><\/span><\/span><\/span><\/span><\/span>)<\/p>\n<p><em><strong>What it means:<\/strong><\/em><\/p>\n<p>=GETPIVOTDATA(<span style=\"color: #ff0000;\"><span style=\"color: #339966;\"><span style=\"color: #0000ff;\">return me this value from the Values Area,\u00a0<span style=\"color: #008000;\">any cell within the Pivot Table,\u00a0<span style=\"color: #ff6600;\">[and return me the value that pertains to this Field name, and this Field item]<span style=\"color: #000000;\">,&#8230;<\/span><\/span><\/span><\/span><\/span><\/span>)<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p>The GETPIVOTDATA function in Excel returns data stored in a Pivot Table.\u00a0 So essentially it extracts the Pivot Table data to enable a user to create customized reports.<\/p>\n<p>Think of the Pivot Table like your data source, so anything you see in the Pivot Table report can be extracted with the GETPIVOTDATA function and put into a cell within your worksheet.<\/p>\n<p>The GETPIVOTDATA function becomes powerful when you reference cells to create shell reports, which you can see from the tutorial below.<\/p>\n<p>NB. <em>Only the Fields and Items that are included in the Pivot Table report (Row\/Column Labels and Values area) can be used to extract their values.<\/em><\/p>\n<div class=\"after-post-box\"><iframe src=\"https:\/\/www.youtube.com\/embed\/sggp0ye-C_w?rel=0 \" width=\"800\" height=\"400\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><a href=\"https:\/\/www.youtube.com\/c\/MyExcelOnlinecomtutorials?sub_confirmation=1\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img loading=\"lazy\" decoding=\"async\" class=\"alignmiddle wp-image-111468 size-full\" style=\"vertical-align: middle;\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/04\/1.yt_.png\" alt=\"\" title=\"\"><\/a><\/p>\n<p class=\"line-two\"><a class=\"IRPP_minimalist icon-download button small\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/GETPIVOTDATA-Intro_.xlsx\" target=\"_blank\" rel=\"noopener noreferrer\" data-leadbox=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/GETPIVOTDATA-Intro_.xlsx\" data-leadbox-id=\"147284833f72a2:12f08263ab46dc\"><span class=\"ctaText px-3 text-capitalize\">Download excel workbook<i class=\"fa fa-download\"><\/i><\/span><span class=\"postTitle px-3\">GETPIVOTDATA-Intro_.xlsx<\/span><\/a><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 1:<\/strong>\u00a0<\/span>We need to\u00a0<strong>enter the <i>GETPIVOTDATA\u00a0<\/i>function<\/strong>:<\/p>\n<h2 style=\"text-align: center;\"><span style=\"color: #0000ff;\">=GETPIVOTDATA(<\/span><\/h2>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-01.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"GETPIVOTDATA Function\"  class=\"alignnone size-full wp-image-6906\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-01.jpg\" alt=\"GETPIVOTDATA Function\" width=\"559\" height=\"219\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-01.jpg 559w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-01-300x118.jpg 300w\" sizes=\"(max-width: 559px) 100vw, 559px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 2:<\/strong><\/span>\u00a0The GETPIVOTDATA arguments:<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_57_1 counter-flat ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li><a href=\"#\" class=\"scroll-to-download\">Free Practice Workbook<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/getpivotdata-function\/#data_field\" title=\"data_field\">data_field<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/getpivotdata-function\/#pivot_table\" title=\"pivot_table\">pivot_table<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/getpivotdata-function\/#field1_item1\" title=\"[field1, item1]\">[field1, item1]<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"data_field\"><\/span><em><strong><span style=\"color: #0000ff;\">data_field<\/span><\/strong><\/em><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>What is the value that we want to return?<\/strong><\/p>\n<p><em>Type in SALES as we want to return the sales value:<\/em><\/p>\n<h2 style=\"text-align: center;\"><span style=\"color: #000000;\">=GETPIVOTDATA<\/span><span style=\"color: #0000ff;\">(&#8220;SALES&#8221;,<\/span><\/h2>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-02.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"GETPIVOTDATA Function\"  class=\"alignnone size-full wp-image-6907\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-02.jpg\" alt=\"GETPIVOTDATA Function\" width=\"559\" height=\"219\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-02.jpg 559w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-02-300x118.jpg 300w\" sizes=\"(max-width: 559px) 100vw, 559px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h2><span class=\"ez-toc-section\" id=\"pivot_table\"><\/span><em><strong><span style=\"color: #0000ff;\">pivot_table<\/span><\/strong><\/em><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>From which pivot table?<\/strong><\/p>\n<p><em>Just reference a cell in the pivot table, let&#8217;s type in $A$1<\/em><\/p>\n<h2 style=\"text-align: center;\"><span style=\"color: #000000;\">=GETPIVOTDATA<\/span><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">(&#8220;SALES&#8221;,<\/span> $A$1,<\/span><\/h2>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-03.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"GETPIVOTDATA Function\"  class=\"alignnone size-full wp-image-6908\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-03.jpg\" alt=\"GETPIVOTDATA Function\" width=\"558\" height=\"217\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-03.jpg 558w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-03-300x117.jpg 300w\" sizes=\"(max-width: 558px) 100vw, 558px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-04.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"GETPIVOTDATA Function\"  class=\"alignnone size-full wp-image-6909\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-04.jpg\" alt=\"GETPIVOTDATA Function\" width=\"362\" height=\"299\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-04.jpg 362w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-04-300x248.jpg 300w\" sizes=\"(max-width: 362px) 100vw, 362px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h2><span class=\"ez-toc-section\" id=\"field1_item1\"><\/span><em><strong><span style=\"color: #0000ff;\">[field1, item1]<\/span><\/strong><\/em><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>What are the fields that would serve as our filtering criteria?<\/strong><\/p>\n<p><em>To get our target sales figure, we will need: Sales Region, Financial Year and Sales Quarter. To do this we will need 3 field-item pairs:<\/em><\/p>\n<h2 style=\"text-align: center;\"><span style=\"color: #000000;\">=GETPIVOTDATA<\/span><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">(&#8220;SALES&#8221;,\u00a0$A$1,<\/span> &#8220;SALES REGION&#8221;, $A27, &#8220;FINANCIAL YEAR&#8221;, B$25, &#8220;SALES QTR&#8221;, B$26)<\/span><\/h2>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-05.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"GETPIVOTDATA Function\"  class=\"alignnone size-full wp-image-6910\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-05.jpg\" alt=\"GETPIVOTDATA Function\" width=\"563\" height=\"219\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-05.jpg 563w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-05-300x117.jpg 300w\" sizes=\"(max-width: 563px) 100vw, 563px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-06.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"GETPIVOTDATA Function\"  class=\"alignnone size-full wp-image-6911\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-06.jpg\" alt=\"GETPIVOTDATA Function\" width=\"558\" height=\"217\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-06.jpg 558w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-06-300x117.jpg 300w\" sizes=\"(max-width: 558px) 100vw, 558px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 3:<\/strong>\u00a0<\/span>Do the same for the rest of the cells by copying the <b>GETPIVOTDATA\u00a0<\/b>formula to the rest of the cells.<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-07.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"GETPIVOTDATA Function\"  class=\"alignnone size-full wp-image-6912\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-07.jpg\" alt=\"GETPIVOTDATA Function\" width=\"559\" height=\"220\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-07.jpg 559w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-07-300x118.jpg 300w\" sizes=\"(max-width: 559px) 100vw, 559px\" \/><\/a><\/p>\n<p>Now your new set of data is ready!<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-08.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"GETPIVOTDATA Function\"  class=\"alignnone size-full wp-image-6913\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-08.jpg\" alt=\"GETPIVOTDATA Function\" width=\"561\" height=\"218\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-08.jpg 561w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2015\/05\/19-GETPIVOTDATA-08-300x117.jpg 300w\" sizes=\"(max-width: 561px) 100vw, 561px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What does it do? A formula that extracts data stored in a Pivot Table Formula breakdown: =GETPIVOTDATA(data_field,\u00a0pivot_table,\u00a0[field1, item1],\u00a0[field2,item2],&#8230;) What it means: =GETPIVOTDATA(return me this value from the Values Area,\u00a0any cell within the Pivot Table,\u00a0[and return me the value that pertains to this Field name, and this Field item],&#8230;) &nbsp; The GETPIVOTDATA function in Excel returns [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":15184,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cos_headline_score":0,"cos_seo_score":0,"cos_headline_text":"","cos_headline_has_been_analyzed":false,"cos_last_analyzed_headline":[],"om_disable_all_campaigns":false},"categories":[3,4,11,42],"tags":[43,80,79,86],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/1276"}],"collection":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/comments?post=1276"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/1276\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/15184"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=1276"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=1276"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=1276"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}