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.
 

Some videos you may like

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.

cyrilbrd

Well-known Member
Joined
Feb 2, 2012
Messages
4,071
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
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?
 

cyrilbrd

Well-known Member
Joined
Feb 2, 2012
Messages
4,071
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
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?
 

cyrilbrd

Well-known Member
Joined
Feb 2, 2012
Messages
4,071
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
You are welcome.
Thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,207
Messages
5,594,841
Members
413,944
Latest member
3xc3ln00b

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
Top