Extract Data from a Pivotable

pjmorris

Well-known Member
Joined
Aug 2, 2012
Messages
2,161
Office Version
  1. 365
Platform
  1. Windows
Dear All,

Having tried to do this with GETPIVOTDATA I now believe that that function only extracts totals and subtotals. I'm trying to extract the heirarchical data and I wonder if this is possible (I suppose I could go back to the original data, but I want to know if I can extract it from the pivot).

The source data is as follows:

companyunitnameworker
CompanyAAHarryBuggins
CompanyAAHarryArold
ShopNNJulieKen
ShopNNJulieLora
CompanyCCMartinNick
CompanyAAHarryCooper
CompanyAAHarryDenis
CompanyBBIanEric
CompanyAAHarryFrank
CompanyBBIanGertrude

<tbody>
</tbody>


The Pivot Table output looks like this:

companyunitnameworker
CompanyAAHarryArold
Buggins
Cooper
Denis
Frank
BBIanEric
Gertrude
CCMartinNick
ShopNNJulieKen
Lora

<tbody>
</tbody>


I would like to be able to refer to say 'Frank' and return that he works for the 'Company' company , in the 'AA' Unit, with a boss named 'Harry'. If I hover my mouse of the name Frank I get a popup that provides just that information, but I can't find a way of doing it either with code or a function; as noted above I cant make GETPIVOTDATA achieve this result.

Grateful for any advice.

Regards
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
When you repeat all itemlables you can use INDEX and MATCH to extract data from your Pivot Table.
 
Upvote 0
Hi Mart,

How simple! I assumed I could do it, just didn't know how.

Many thanks, much appreciated.

Regards

Peter
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,315
Members
449,081
Latest member
tanurai

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