• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

GetPivotData help

Hi,

How to get the values from Pivot table using getpivotdata formula if the sum of value appears in a column. Find attached the excel sheet where in I am trying to the Stream based on the Hours value. When I use the formula =GETPIVOTDATA("Stream",A4,"Actual CP","2403"). Can you kindly help me here.
 

Attachments

  • Billing Details.xls
    218.5 KB · Views: 4
I can't find any ref to Hours in the workbook you attached, so this is a complete guess:
=GETPIVOTDATA("Actual CP",$A$3,"Stream","App Management")
 
Further to what p45cal says, Excel will actually construct the GETPIVOTDATA formula for you, if you have the Generate GETPIVOTDATA enabled:Generate GETPIVOTDATA.gif

Simply type an = in the cell where you want your formula, then select the cell in the PivotTable that you want to reference. Excel will then create the formula you need, as in the screenshot below:GETPIVOTDATA.gif
 
Hi ,

A Pivot Table is a way of summarizing data ; the field called Stream is the Row Labels field , and since it is a pivot table , you are guaranteed that these labels will be unique.

There is no guarantee that the values field , which is the Sum of Actual CP , will have unique values ; it is always possible that there will be two identical values.

Even otherwise , I do not see the objective of retrieving the Stream corresponding to the Sum of Actual CP values. If at all you wish to find the Top 5 / Bottom 5 streams , you can always sort the pivot table based on the Sum of Actual CP values , and then take the first 5 row labels.

Just BTW , never include the Total row of your data range in the pivot table data source range , since the pivot table anyway has a Grand Total facility available , and including the Total row of your data range puts off this Grand Total value.

Narayan
 
Back
Top