Home › Functions › Lookup & Reference › GETPIVOTDATA
fx
GETPIVOTDATA
Lookup & Reference  ·  Since: Excel 2003  ·  9 languages

The GETPIVOTDATA function returns visible data from a PivotTable.

🌐 Translations

English GETPIVOTDATA
Deutsch PIVOTDATENZUORDNEN
Français LIREDONNEESTABCROISDYNAMIQUE
Español IMPORTARDATOSDINAMICOS
Italiano INFO.DATI.TAB.PIVOT
Português INFODADOSTABELADINÂMICA
Nederlands DRAAITABEL.OPHALEN
Polski WEŹDANETABELI
Русский ПОЛУЧИТЬ.ДАННЫЕ.СВОДНОЙ.ТАБЛИЦЫ

📦 Availability

Excel versionAvailable
Excel 2007 ✓
Excel 2013 ✓
Excel 2019 ✓
Excel 2021 ✓
Microsoft 365 ✓
Translate a formula with this function
fx EN
fx DE

⌨ Syntax

GETPIVOTDATA(data_field,pivot_table,[field1,item1,field2,item2],...)

Arguments

data_field (required) — The name of the PivotTable field that contains the data that you want to retrieve. This needs to be in quotes. Example: =GETPIVOTDATA("Sales", A3). Here, "Sales" is the Values field that we want to retrieve. Since no other field is specified, GETPIVOTDATA returns the total sales amount.
pivot_table (required) — A reference to any cell, range of cells, or named range of cells in a PivotTable. This information is used to determine which PivotTable contains the data that you want to retrieve. Example: =GETPIVOTDATA("Sales", A3). Here, A3 is a reference inside the PivotTable and tells the formula which PivotTable to use.
field1, item1, field2, item2 (optional) — 1 to 126 pairs of field names and item names that describe the data that you want to retrieve. The pairs can be in any order. Field names and names for items other than dates and numbers need to be enclosed in quotation marks. Example: =GETPIVOTDATA("Sales", A3, "Month", "Mar"). Here, "Month" is the field and "Mar" is the item. To specify multiple items for a field, enclose them in curly braces (for example: {"Mar", "Apr"}). For OLAP PivotTables , items can contain the source name of the dimension and also the source name of the item. A field and item pair for an OLAP PivotTable might look like this: "[Product]","[Product].[All Products].[Foods].[Baked Goods]"

▶ Examples

=GETPIVOTDATA("Sales",A3)
=GETPIVOTDATA("Sales",$A$3)
=GETPIVOTDATA("Sum of Sales",$A$3)

Related functions

Copied to clipboard