Refrencing a cell in a Pivot Table

android1

Board Regular
Joined
Feb 12, 2016
Messages
69
Hi,

I would like to reference a cell in a pivot table. In a different worksheet in cell H5 I'd like to simply say =(U5).
U5 is the cell in Pivot table and contains the number 128.
I then want to drag this formula down to reference U6,U7,U8 etc

However when I do this I only get the value in cell U5(128) all the way down.

My formula looks like -> =GETPIVOTDATA("Visits_NoHrs",Sheet2!$A$3,"CarerName","Aislle")

Is there a way around this?

Gerry
 
Last edited:

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Under the Pivot Table Options in the Analyze Ribbon, you should see a "Generate GetPivotTable". Uncheck that and then perform your cell selection for your formula.
You can also specifically reference the Sheet and Cell you want the value of.
Code:
=Sheet2!U5
 
Upvote 0
Gerry, thank you for asking that question. That aspect of a Pivot Table always annoyed me.
SpillerBD, thank you for your response. That's great!
I hope this will also work when doing Lookups to a Pivot Table.
 
Upvote 0
I hope this will also work when doing Lookups to a Pivot Table.
Yes, but once you see how the GetPivotData formula works, you can insert the appropriate filter values as another option.
 
Upvote 0

Forum statistics

Threads
1,213,538
Messages
6,114,218
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top