Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 142
Default Pivot table with start and end date selection option.

Hi,

I have a pivot table with some data. The data has a start date and an
end date.
Is there a way to control dates using pivot table by having a data
validation drop for start & end date and getting results in piovt
based on that.
Would appreciate if one can also drill the data between the date
ranges.


Thx.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Pivot table with start and end date selection option.

You can add the date fields as filters in the page area, at the top of
the pivot table. Then, select a date from the dropdown list.

To extract data in a date range, you could add a column to the source
data, to calculate if the record's date are in the date range selected
in the data validation dropdowns. Add this field to the pivot table's
page area, and select TRUE from the dropdown list.
After you change the dates in the data validation cells, you can refresh
the pivot table, to see the data in that date range.

Sinner wrote:
Hi,

I have a pivot table with some data. The data has a start date and an
end date.
Is there a way to control dates using pivot table by having a data
validation drop for start & end date and getting results in piovt
based on that.
Would appreciate if one can also drill the data between the date
ranges.


Thx.



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 142
Default Pivot table with start and end date selection option.

On Feb 22, 3:52*am, Debra Dalgleish wrote:
You can add the date fields as filters in the page area, at the top of
the pivot table. Then, select a date from the dropdown list.

To extract data in a date range, you could add a column to the source
data, to calculate if the record's date are in the date range selected
in the data validation dropdowns. Add this field to the pivot table's
page area, and select TRUE from the dropdown list.
After you change the dates in the data validation cells, you can refresh
the pivot table, to see the data in that date range.

Sinner wrote:
Hi,


I have a pivot table with some data. The data has a start date and an
end date.
Is there a way to control dates using pivot table by having a data
validation drop for start & end date and getting results in piovt
based on that.
Would appreciate if one can also drill the data between the date
ranges.


Thx.


--
Debra Dalgleish
Contextureshttp://www.contextures.com/tiptech.html


Hi Debra,

The data is as follows:

Date Quantity Item
01-Jan-08 5 A
02-Jan-08 8 A
01-Jan-08 9 B
03-Jan-08 5 C
01-Jan-08 2 D
04-Jan-08 6 E
04-Jan-08 5 A

----------------------------------------
Required:
Using Pivot table

Example:01

Start date:<selection from dropdown i.e. date column 01-Jan-08
End date:<selection from dropdown i.e. date column 03-Jan-08

A.............. 13
B.............. 09
C.............. 05
D.............. 02

Total: 29
------------------------------------------------------------------------------------------------
Example:02

Start date:<selection from dropdown i.e. date column 04-Jan-08
End date:<selection from dropdown i.e. date column 04-Jan-08

A.............. 05
E.............. 06

Total: 11
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,979
Default Pivot table with start and end date selection option.

There's a sample file here that might help you get started:

http://www.contextures.com/excelfiles.html

Under PivotTables, look for 'PT0014 - Filter from Worksheet Date Range'

It uses programming to update the pivot table after the target dates are
changed. You could do the refresh manually instead, if you prefer.

Sinner wrote:
On Feb 22, 3:52 am, Debra Dalgleish wrote:

You can add the date fields as filters in the page area, at the top of
the pivot table. Then, select a date from the dropdown list.

To extract data in a date range, you could add a column to the source
data, to calculate if the record's date are in the date range selected
in the data validation dropdowns. Add this field to the pivot table's
page area, and select TRUE from the dropdown list.
After you change the dates in the data validation cells, you can refresh
the pivot table, to see the data in that date range.

Sinner wrote:

Hi,


I have a pivot table with some data. The data has a start date and an
end date.
Is there a way to control dates using pivot table by having a data
validation drop for start & end date and getting results in piovt
based on that.
Would appreciate if one can also drill the data between the date
ranges.


Thx.


--
Debra Dalgleish
Contextureshttp://www.contextures.com/tiptech.html



Hi Debra,

The data is as follows:

Date Quantity Item
01-Jan-08 5 A
02-Jan-08 8 A
01-Jan-08 9 B
03-Jan-08 5 C
01-Jan-08 2 D
04-Jan-08 6 E
04-Jan-08 5 A

----------------------------------------
Required:
Using Pivot table

Example:01

Start date:<selection from dropdown i.e. date column 01-Jan-08
End date:<selection from dropdown i.e. date column 03-Jan-08

A.............. 13
B.............. 09
C.............. 05
D.............. 02

Total: 29
------------------------------------------------------------------------------------------------
Example:02

Start date:<selection from dropdown i.e. date column 04-Jan-08
End date:<selection from dropdown i.e. date column 04-Jan-08

A.............. 05
E.............. 06

Total: 11



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

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
preserve formatting option in pivot table option dialog box Dave F Excel Discussion (Misc queries) 4 May 8th 08 07:25 PM
Specify pivot table to hide 'earlier than' grouped data start date KenY Excel Programming 2 May 29th 07 09:43 AM
Start Date And End Date with pivot tables? Mark J Excel Programming 1 March 12th 07 04:28 PM
Start & End Dates in pivot table AngePaton Excel Discussion (Misc queries) 0 January 4th 05 11:01 AM
Date Selection for Pivot Table Burak Emer Excel Discussion (Misc queries) 0 December 15th 04 08:19 AM


All times are GMT +1. The time now is 08:32 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"