Last updated: July 18, 2008 11:47 PM
![]()
Excel -- Pivot Tables -- GetPivotData
Download the zipped sample file
To add a Generate GetPivotData button:
On the PivotTable toolbar, click the Generate GetPivotData button to toggle this feature on and off.
Watch the Video
View the steps to customize the toolbar, in a short video clip.
GetPivotData Formula
To extract data from a PivotTable, you can use the GetPivotData function. The function arguments depend on the version of Excel that you're using, so check Excel's on-line help for examples.The example at the right is for Excel 2002, and returns the number of Units sold in Ontario. In Excel 2002, if you have the Generate GetPivotData feature turned on, this formula will be created automatically, when you reference a cell in the Pivot Table.
In Excel 2000 or Excel 97, you have to create the GetPivotData formula manually, by typing an equal sign, the function name, and the required arguments, just as you would for any other function.
This example shows the function arguments required for Excel 2000 or Excel 97, to return the number of Units sold in Ontario.
![]()
This example shows the function arguments required for Excel 2000 or Excel 97, to return the total number of Units sold.