Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Limit Dates in Pivot Table

I have a pivot table that I would like to limit to the previous weeks date
range. How can I code something that will filter out all dates other then
the previous weeks?

The pivot table structure will be rows of employees names, columns of Dates
and a count of transactions.

In an example for today, I would want a date range of 2/3 - 2/9. Then next
week it would list 2/10 - 2/16.

Thanks for the help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 272
Default Limit Dates in Pivot Table

Greg, other than unselecting all dates and selecting only the ones you want,
the only way to do this is to add a helper column with a calculation to
calculate weeks. Here's an example formula to add to your data set to give
you a column listing the previous week in the format of MM/DD/YYYY:

=TEXT(A1-7-(WEEKDAY(A1)-1),"MM/DD/YYYY") & " - " &
TEXT(A1-WEEKDAY(A1),"MM/DD/YYYY")

Be sure to remove all line breaks. Then add the new column as the page field
in the pivot table and select the week that you want. Let me know if you need
additional help.
--
Charles Chickering

"A good example is twice the value of good advice."


"Greg H." wrote:

I have a pivot table that I would like to limit to the previous weeks date
range. How can I code something that will filter out all dates other then
the previous weeks?

The pivot table structure will be rows of employees names, columns of Dates
and a count of transactions.

In an example for today, I would want a date range of 2/3 - 2/9. Then next
week it would list 2/10 - 2/16.

Thanks for the help.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit Pivot Table by date Catherine Charts and Charting in Excel 0 May 12th 10 09:46 PM
Limit access in a pivot table Ken Excel Worksheet Functions 2 October 23rd 09 04:53 PM
Pivot table limit Gilles Desjardins Excel Worksheet Functions 3 September 20th 05 02:14 AM
pivot reports - limit report to last 20 dates Pivot Help Excel Worksheet Functions 1 March 1st 05 09:08 PM
pivot help - limit data for last 20 dates Pivot Help Excel Worksheet Functions 0 February 28th 05 03:43 PM


All times are GMT +1. The time now is 06:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"