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.
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.
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.
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
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.
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.
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.
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.