Numbers Exercises

GETPIVOTDATA in Apple Numbers

Last updated:

Short answer: GETPIVOTDATA retrieves a value from a pivot table. Syntax: GETPIVOTDATA(aggregate-field, pivot-cell, field-name, item, …)

Explanation

GETPIVOTDATA retrieves a value from a pivot table. You give the field with the data, a cell in the pivot table, and then pairs of a field name and an item to say which value you want. That way your formula keeps working when the pivot table changes shape.

Syntax

GETPIVOTDATA(aggregate-field, pivot-cell, field-name, item, …)

Example

The total revenue for the North region from a pivot table that has a cell A1:

=GETPIVOTDATA("Revenue",A1,"Region","North")

The revenue for North in the year 2026:

=GETPIVOTDATA("Revenue",A1,"Region","North","Year",2026)

Watch out

Each field name has exactly one item after it, so the number of arguments is always even. Field names and items go in quotation marks, except an item that is a number. The function exists only in Numbers.

This function fetches data from the internet or reads a pivot table, so it cannot be practised in a browser. Try it in Numbers itself.

Frequently asked questions

What does GETPIVOTDATA do in Apple Numbers?

GETPIVOTDATA retrieves a value from a pivot table. You give the field with the data, a cell in the pivot table, and then pairs of a field name and an item to say which value you want. That way your formula keeps working when the pivot table changes shape.

What is the syntax of GETPIVOTDATA?

The syntax is GETPIVOTDATA(aggregate-field, pivot-cell, field-name, item, …).

What does GETPIVOTDATA do in Numbers?

It reads a value from a pivot table based on field names and items.

Why is the number of arguments of GETPIVOTDATA even?

After the first two arguments come pairs of a field name and an item. Each name has exactly one item.

More in this category

Practise it yourself

Type the formula yourself in a real exercise and see right away if your answer is correct. The first exercises are free.

Start practising