Lookup Level: Expert Available in: Excel 2007+
In this article Syntax Examples Example 1 Related functions
GETPIVOTDATA pulls a value from a pivot by field names, not by cell position — so your report keeps working when the pivot grows or reorders. Excel writes it for you when you click a pivot cell.
Syntax
=GETPIVOTDATA(data_field, pivot_table, [field1, item1], ...)
Argument
What it means
pivot_table
Any cell in the pivot.
Examples
Example 1
=GETPIVOTDATA("Amount", $A$3, "Region", B1, "Month", C1)
Region and month taken from cells, so one formula fills a whole grid.
💡 Hate it when it appears? PivotTable Analyze › Options › untick “Generate GetPivotData”. But try replacing the hard-coded items with cell references first — that is where it becomes powerful.
SUMIFS · INDEX
📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper .
Written by Atul Vij Atul (AJ) builds office-automation and local-first AI tools as Atulya AI, and works with Excel, SAP and Oracle EPM every day. He writes about the shortcuts, macros and automations that actually save time — plus the occasional wacky fact.
More posts by Atul → ← Previous ISNA Function in Excel: Is It “Not Found”?Next → HYPERLINK Function in Excel: Clickable Links From a Formula
✨ Ask AI about this article Stuck on a step? Ask a question and the AI answers using this article.
Your question about this article Model Auto — best model for the task GPT-OSS 120B — OpenAI · strongest reasoning · counts as 2 Llama 3.3 70B — Meta · fast, all-round Qwen 2.5 Coder 32B — Alibaba · best for code Gemma 4 26B — Google · clear explanations Mistral Small 3.1 — Mistral · quick GPT-OSS 20B — OpenAI · balanced Llama 4 Scout — Meta · newest Llama Gemma Sea Lion V4 27b — Aisingapore Glm 4.7 Flash — Zai-org Llama 3.1 8b — Meta Llama 3.2 3b — Meta Nemotron 3 120b A12b — Nvidia · counts as 2 Qwen3 30b A3b — Qwen Qwen3.8 27b — Qwen Qwq 32b — Qwen · counts as 2 Free · AI can be wrong Ask ✨