Find current range of dates used in pivot table

aberry77

New Member
Joined
Jan 14, 2014
Messages
13
I have a pivot table that has the date located in the Row Labels field. I'd like to place the date range selected in the pivot table in a new worksheet so the end user knows which date they are currently viewing data for.

For instance - If the date selected in the pivot table is set to display data for the current month, I need a cell on a separate worksheet to show that the data is for January 2014. I've attempted to use GETPIVOTDATA but no luck. Any input is appreciated.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hi,
Getpivodata may be used to retrieve summary data from a PivotTable report.
Would you want to return the date stated in the Row labels? Or would you want to return the range seen in the Row Labels?
 
Upvote 0
given your pivot in Column F
formula in the cell of your choice (not in F) is =IF(MIN(F:F)=MAX(F:F),TEXT(MIN(F:F),"d-mmm-yy"),TEXT(MIN(F:F),"d-mmm-yy")&" to "&TEXT(MAX(F:F),"d-mmm-yy"))
thus would return for the following:
Sum of this
Row LabelsTotal1-Apr-14 to 1-Jun-14
4/1/141684
5/1/141681
6/1/141560
Grand Total4925

<tbody>
</tbody>


or
Sum of this
Row LabelsTotal1-Jan-14
1/1/141388
Grand Total1388

<tbody>
</tbody>


Would that be close to what you needed?
 
Upvote 0
You are welcome.
Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,883
Messages
6,122,077
Members
449,064
Latest member
MattDRT

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