Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dan
 
Posts: n/a
Default Pivot table displayed by day of the week

I would like to create my pivot table displaying data with the date shown as
day-of-the-week. That is, I have data collected for a period of months. I
want to group my data for several months into Monday, Tuesday, etc. so I see
the results for all of the Mondays, Tuesday, etc. in the several month period.

Example: For the period Jan 1, 2004 to June 30, 2004:

Mon Tue Wed Thu Fri Sat Sun
Data1 35 20 46 58 98 109 232

Any suggestions greatly appreciated; can it be done in Pivot Tables?
Dan

  #2   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi Dan

One way would be to introduce an extra column to your data headed DAY.
In this column enter the formula =WEEKDAY(A2) changing the reference to be
that of the column containing your dates.
Copy the formula down the column to cover the range of your data.
Modify your Pivot Table source range to include the new column - DAY
Make DAY the column value in your PT

--
Regards
Roger Govier
"Dan" wrote in message
...
I would like to create my pivot table displaying data with the date shown
as
day-of-the-week. That is, I have data collected for a period of months. I
want to group my data for several months into Monday, Tuesday, etc. so I
see
the results for all of the Mondays, Tuesday, etc. in the several month
period.

Example: For the period Jan 1, 2004 to June 30, 2004:

Mon Tue Wed Thu Fri Sat
Sun
Data1 35 20 46 58 98 109
232

Any suggestions greatly appreciated; can it be done in Pivot Tables?
Dan



  #3   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

If you'd like the weekday names, instead of numbers, change Roger's
formula to: =TEXT(A2,"ddd")

Roger Govier wrote:
Hi Dan

One way would be to introduce an extra column to your data headed DAY.
In this column enter the formula =WEEKDAY(A2) changing the reference to be
that of the column containing your dates.
Copy the formula down the column to cover the range of your data.
Modify your Pivot Table source range to include the new column - DAY
Make DAY the column value in your PT



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #4   Report Post  
Dan
 
Posts: n/a
Default

Thanks, everyone! Just what I wanted...
Dan

"Roger Govier" wrote:

Hi Dan

One way would be to introduce an extra column to your data headed DAY.
In this column enter the formula =WEEKDAY(A2) changing the reference to be
that of the column containing your dates.
Copy the formula down the column to cover the range of your data.
Modify your Pivot Table source range to include the new column - DAY
Make DAY the column value in your PT

--
Regards
Roger Govier
"Dan" wrote in message
...
I would like to create my pivot table displaying data with the date shown
as
day-of-the-week. That is, I have data collected for a period of months. I
want to group my data for several months into Monday, Tuesday, etc. so I
see
the results for all of the Mondays, Tuesday, etc. in the several month
period.

Example: For the period Jan 1, 2004 to June 30, 2004:

Mon Tue Wed Thu Fri Sat
Sun
Data1 35 20 46 58 98 109
232

Any suggestions greatly appreciated; can it be done in Pivot Tables?
Dan




  #5   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi Debs

Forgot to mention that I had already formatted my DAY column in the data set
as Custom=ddd.
Same result, not sure whether TEXT evlauates quicker than WEEKDAY, but it
does save having to remeber to format the source column.

--
Regards
Roger Govier
"Roger Govier" wrote in message news:...
Hi Dan

One way would be to introduce an extra column to your data headed DAY.
In this column enter the formula =WEEKDAY(A2) changing the reference to
be that of the column containing your dates.
Copy the formula down the column to cover the range of your data.
Modify your Pivot Table source range to include the new column - DAY
Make DAY the column value in your PT

--
Regards
Roger Govier
"Dan" wrote in message
...
I would like to create my pivot table displaying data with the date shown
as
day-of-the-week. That is, I have data collected for a period of months. I
want to group my data for several months into Monday, Tuesday, etc. so I
see
the results for all of the Mondays, Tuesday, etc. in the several month
period.

Example: For the period Jan 1, 2004 to June 30, 2004:

Mon Tue Wed Thu Fri Sat Sun
Data1 35 20 46 58 98 109 232

Any suggestions greatly appreciated; can it be done in Pivot Tables?
Dan







  #6   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

Well, it's a lucky coincidence that 1/1/1900 is a Sunday. <g

Roger Govier wrote:
Hi Debs

Forgot to mention that I had already formatted my DAY column in the data set
as Custom=ddd.
Same result, not sure whether TEXT evlauates quicker than WEEKDAY, but it
does save having to remeber to format the source column.



--
Debra Dalgleish
Excel FAQ, Tips & Book List
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
Using a Pivot Table Calculated Field to get a Unique Count Mike Struckman Excel Worksheet Functions 1 November 22nd 05 05:32 PM
Removing errors from a Pivot table Mighty Magpie Excel Discussion (Misc queries) 2 February 3rd 05 03:15 PM
Pivot Table services Craig Excel Discussion (Misc queries) 5 January 19th 05 06:11 PM
pivot table multi line chart souris Charts and Charting in Excel 2 December 7th 04 03:56 AM
Problem with Pivot Table Drop-Down Menus Mac Excel Worksheet Functions 4 November 7th 04 01:18 PM


All times are GMT +1. The time now is 11:09 PM.

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"