1. Home
  2. Functions
  3. Lookup and reference
  4. GETPIVOTDATA

GETPIVOTDATA function

Returns data from a pivot table. Refer to the pivot table cells directly instead.

Syntax

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

Arguments

ArgumentRequiredDescription
data_fieldRequiredThe name of the value field
pivot_tableRequiredA cell in the pivot table
field1OptionalA field name
item1OptionalAn item of that field

How to use GETPIVOTDATA

GETPIVOTDATA takes 2 required arguments and 2 optional arguments, and accepts more values in the same pattern. Type =GETPIVOTDATA( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=GETPIVOTDATA("Sales", A1)Result #REF!

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.