GETPIVOTDATA(data_field, pivot_table, [field1, item1, field2, item2], ...)
=GETPIVOTDATA("Sales",$B$4,"Product","Hazelnut")
The GETPIVOTDATA function can be used to retrieve specific data from a pivot table. For example, the following formula will return the total sales for the product Hazelnut, which in this case is 62456.
GETPIVOTDATA("Sales",$B$4,"Region","East","Product","Almond")
The GETPIVOTDATA function can also be used to retrieve data based on multiple criteria. For example, the following formula returns the total sales for the Product Almond in the East region, which in this case is 41518.
The GETPIVOTDATA function is used to retrieve data from PivotTables, which is a Sourcetable table containing pivot rows and columns. This function takes three arguments, which specify the data to be retrieved, it can be a single cell or a list of cells.