GETPIVOTDATA Function in Excel: Reliable Numbers From a Pivot Table

⏱ 1 min readUpdated 28 September 2026

LookupLevel: ExpertAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. 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.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong