Can I pull Unique IDs from a PivotTable using GETPIVOTDATA?

oddzac

New Member
Joined
Aug 12, 2022
Messages
25
Office Version
  1. 365
  2. 2021
  3. 2019
Platform
  1. Windows
For NDA reasons, I can't fully disclose details of the project I'm working on (re: large amounts of personal and confidential info) and I apologize in advance if this makes answering my question harder.

I'm generating a report based on a weeks worth of productivity metrics. These metrics are imported via queries to individual sheets in the woorkbook and then pivoted to extract and compile data.

My challenge, currently, is one of design simplification rather than utility.
Each employee has a unique "Login" that I use to reference the rest of the metrics in a table on the main sheet.
These logins are pulled from one of the queried reports, pivoted, and only populate if they exist in that report.
The trouble I'm having is that I've built the main table to reference that pivot with:
Excel Formula:
=WSSW!AC4
-
Excel Formula:
=WSSW!AC304
with a wide gap of blank references to ensure that the entire pivot is captured.
Because of this, I have a huge (useless) chunk at the bottom of my sheet that bugs the mess outta me
1662754541676.png

(continued for about 100 lines)
And I have to actively cut that space out of my table each time I run the report.


SO, I'm looking for a way to get the rows of my table to adjust/autofill based on the number of populated logins.
Something tells me GETPIVOTDATA is the answer, but I haven't been able to get it down when the table only has the "row labels" initial column..

Am I asking for too much?
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
For better context, this is the pivot I'm pulling from... redacted.

1662755501654.png
 
Upvote 0
If I knew how to edit a post, believe me, I would

This is the Table info for the pivot above:

1662757219451.png
 
Upvote 0
If I knew how to edit a post,
You can edit your post by clicking the 'Edit' link at the bottom left of the post. However, that link only appears for 10 minutes after you make the post. :)
 
Upvote 1

Forum statistics

Threads
1,223,907
Messages
6,175,301
Members
452,633
Latest member
DougMo

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