Lookup and reference

GETPIVOTDATA

Retrieve a PivotTable total by asking for specific field and item combinations.

Syntax

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

Worked example

Start with a PivotTable containing A3. Give its value field the caption Sum of Units and its row field the name Team. If the East total is 18, the formula retrieves that total wherever the row appears.

=GETPIVOTDATA("Sum of Units",A3,"Team","East")

Result 18

Microsoft documentation

Check the arguments, supported editions and behavior of this function in Microsoft’s reference.

Microsoft reference

Search ExcelTutor