FormulaCraft

How to use GETPIVOTDATA to pull values from a pivot table in Excel and Google Sheets

Topic:Pivot-style summaries (formula approach)
Excel & Google Sheets
=GETPIVOTDATA("Sales",A1,"Region","East")

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Build a small pivot table with your data. Place the top-left cell of the pivot at A1.
  2. 2Identify the value field name ('Sales') and the field/item pair you want to extract ('Region', 'East').
  3. 3Enter =GETPIVOTDATA("Sales",A1,"Region","East") in any cell outside the pivot.
  4. 4Confirm the result matches the pivot's displayed value for East region sales.
  5. 5Replace hardcoded item strings with cell references (e.g., D2) to make the formula dynamic.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

Why does GETPIVOTDATA return a #REF! error?

The field name or item label doesn't exist in the pivot. Check for trailing spaces, exact capitalisation, and that the pivot is refreshed with current data.

Can I use GETPIVOTDATA without a pivot table?

No — GETPIVOTDATA requires a pivot table as its second argument. For formula-only aggregation without any pivot, use SUMIFS or the approach on the group-by-month-without-pivot page instead.

Does it work in Google Sheets?

Yes. Google Sheets supports GETPIVOTDATA with the same syntax against a Sheets pivot table.

More on Pivot-style summaries (formula approach)

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: