Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reference a Cell within a Pivot Table within a GetPivotData formula

Status
Not open for further replies.

cabbey77

Technical User
Aug 6, 2004
68
US
Hello,

I have a Pivot Table whereby I am performing a running Percentage outside of the pivot table.
The Table is as follows:
Code:
Hub (grouped) Comp  Desc  Qty by Wk  Total
The running subtotal formula works for the 1st hub but not subsequent due to the hard reference to $AE$5.

=IF(ISBLANK(A5),((AE5/$AE$5)+IF(ISBLANK(A4),AG4,0)),TEXT(AE5,"####"))

I need to replace the $AE$5 with a reference the total for whatever hub group is in the row.

Is this clear as mud?

Thanks in advance!

~C
 
Hi,

Why not use the source data to calculate the sum using SUMIF or SUMIFS function.
 
I agree with Skip 100% on this one. I can tell you from experience that referring to cells within a Pivot table, if that Pivot table could possibly change in the future is a bad idea. You'll wind up kicking yourself when you're editing.. and editing... and editing.. and editing... down the road.

"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top