EXCEL GETPIVOTDATA FUNCTION

The Getpivotdata function in Excel pulls data from certain fields in an Excel Pivot Table.

Syntax :

=GETPIVOTDATA( data_fieldpivot_table[field1][item1][field2][item2], …)

Parameters :

The following parameters are :

  • Data field – The pivot table data field that you wish to extract (i.e. the data header in your original data collection).

 

  • Pivot table – A reference to any cell or range of cells in the Pivot Table that will be searched.
    (This reference only specifies the pivot table.)

 

  • [field1], [item1], [field2], [item2], etc. – You can specify up to 126 optional pairs of fields and item names (i.e. the row and column headings, as well as specific categories) for which you wish the returned value.

 

  • Please keep in mind that the item values should be entered as follows:

 

  • Numbers can be simply inputted;
    Dates should be supplied using date serial numbers or the date function.

 

  • Times should be entered in decimal form or by using the time function.

 

  • Text values should be surrounded by quote marks.

Step By Step Guide of GETPIVOTDATA Function

Example :

=GETPIVOTDATA(“Invoice Amount”, $A$2, “Date”, “Jan”) – Returns the value $357,520, which is the Invoice Amount Total for whole Date field, “Jan.”

  • #REF! – Occurs if one of the following conditions is met: the given pivot table reference does not refer to a pivot table; or Any of the fields given by the data field, [field], or [item] parameters are not valid fields in the pivot table specified. The field details are not shown in the given pivot table (for example, total sales data for SalesPerson ‘Kevin’ are not shown in the sample spreadsheet above).

Related Functions

HLOOKUP Function

HLOOKUP Function

Explore Now

VLOOKUP Function

VLOOKUP Function

Explore Now

INDEX Function

INDEX Function

Explore Now

MATCH Function

MATCH Function

Explore Now

DATE Function

DATE Function

Explore Now

IF Function

IF Function

Explore Now

OR Function

OR Function

Explore Now

AND Function

AND Function

Explore Now

RANK Function

RANK Function

Explore Now

SUMIF Function

SUMIF Function

Explore Now

XIRR Function

XIRR Function

Explore Now

WORKDAYS Function

WORKDAYS Function

Explore Now