Reference a specific number inside a PivotTable without it breaking when the pivot reshapes. GETPIVOTDATA fetches a value by its field names — not its cell position — so your dashboard formulas stay correct.
The example
Fetching one region’s total from a sales pivot.
| A | B | |
|---|---|---|
| 1 | Lookup | Result |
| 2 | East Sales | $42,000 |
The formula
Fetch by field, not by cell:
How it works
GETPIVOTDATA addresses pivot values by name:
- Data field first — the value you summarized (e.g. "Sales").
- The pivot anchor (any cell in the pivot, usually its top-left).
- Then field/item pairs —
"Region", "East"— that pinpoint the value. - Because it locates by labels, moving or refreshing the pivot doesn’t break the formula. (Tip: typing
=then clicking a pivot cell auto-writes GETPIVOTDATA.)
Hate the auto-GETPIVOTDATA? Turn it off via PivotTable Analyze → Options → uncheck “Generate GetPivotData” if you’d rather click and get a plain cell reference. And if you don’t even need a pivot, SUMIFS against the raw data gives the same totals with full flexibility.
Try it: interactive demo
Pick a region; fetch its total.
Variations
Dynamic item
Reference a cell for the item:
Two fields
Region and month:
SUMIFS instead
No pivot needed:
Pitfalls & errors
Field/item names must match exactly. A typo or a changed field name returns #REF!.
The item must be visible. If a filter hides “East,” GETPIVOTDATA can’t fetch it — it errors.
Anchor stays put. Point at the pivot’s top-left; if the pivot moves sheets, update the anchor.
Practice workbook
Frequently asked questions
How do I reference a PivotTable value in a formula?
How do I make GETPIVOTDATA use a cell for the item?
How do I stop Excel auto-creating GETPIVOTDATA?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class