Although you can reference any cell in a pivot table with a normal reference (i.e. F11) the GETPIVOTDATA will continue to return correct values even when the pivot table changes. In this case, we want the grand total of the “sales” field, so we simply provide the name the field in the first argument, and supply a reference to the pivot table in the second: The pivot_table reference can be any cell in the pivot table, but by convention we use the upper left cell. Note: GETPIVOTDATA will return the value field based on current “summarize by” settings (sum, count, average, etc.).

Dave Bruns

Hi - I’m Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.