So, one day I was working on pivot report and I wanted to do some operation with pivot data. I started writing the formula and as I clicked on pivot field cell, I saw GETPIVOTDATA function there.

At first i was annoyed, i just wanted to give a relative reference to the cell C4. So turned it off.

How to Turn Off GETPIVOTDATA function

  • Click anywhere on PIVOT table and goto analyse tab.
  • Click on Option
  • Click on “Autogenerate GetPivotData”

But later I understood the usefulness of GETPIVOTDATA function of Excel. I understood when and how to use GETPIVOTDATA function in Excel. So lets tear apart this GETPIVOTDATA function and see how the it works.

How to use GETPIVOTDATA Function?

You can write GETPIVOTDATA function as any other function in Excel.
When in dashboard you just want to get dynamic update from pivot table, GETPIVOTDATA really helps you to do so.

GETPIVOTDATA Function Syntax.

=GETPIVOTDATA (data_field, pivot_table, [field1, item1], …)

Data_Field: The field that you want to query from.
Pivot_table: A reference to any cell in pivot table, so that formula know which pivot table to use.
[field1, item1]: This is optional. But you’ll be using this more often. Rather than explaining it i’ll show you…


So, here we have this pivot table.

If, in a cell, I want to get grand total of “Sum of Units” dynamically. Write this excel

=GETPIVOTDATA(“Sum of Units”,$A$3)

This GETPIVOTDATA formula will return 2121.

If You want to get grand total of sum of unit cost, just replace “Sum of Units” with “sum of unit cost” and that will return 873.27. The reference $A$3 can be another reference as long as it is in pivot table area. It is suggested to use first cell since pivot table never going to shrunk to that level.

Lets see some more GETPIVOTDATA examples.

To get total of “sum of units” in year 2014, write this GETPIVOTDATA formula.

=GETPIVOTDATA(“Sum of Units”,$A$3,”orderdate”,2014)

This will return 1114. I assume that you know how to get total of 2015.

To get price of binder in year 2015 write this GETPIVOTDATA formula.

=GETPIVOTDATA(“Sum of Units”,$A$3,”orderdate”,2015,”item”,”Binder”)

So yeah guys, thats how you can excel GETPIVOTDATA function. In excel dashboards it can do magic.If you have any thought regarding this function or any other in Excel 2016 or older versions, mention it in the comments section below.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Visit Us On TwitterVisit Us On FacebookVisit Us On Google PlusVisit Us On Youtube