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 referencePivot Tables in Excel: Using GETPIVOTDATA Formula
Practice GETPIVOTDATA
Treat the sample as a PivotTable containing A3. Request “Sum of Units” for the “Team” item “East”.
| A | B | |
|---|---|---|
| 1 | Team | Sum of Units |
| 2 | East | 18 |
| 3 | West | 9 |
Show example formula
=GETPIVOTDATA("Sum of Units",A3,"Team","East") Lesson quiz
Answer three questions to see your level in this lesson.
