Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / September 2007

Tip: Looking for answers? Try searching our database.

Pivot table & weeknum query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jock - 17 Sep 2007 13:06 GMT
Within a pivot table, I have summarised the data firstly by month, then by
week, then by work type.
I need to show the 'week commencing' date once for each week displayed.
I had a limited amount of success by adding a column to the data area and
used a formula (from Rick Rothstein - thanks) to display exactly this. When
used in the pivot table however, it was treated as an individual entry rather
than a 'group' heading. I understand why this has happened, but I need a work
around. Even if there's a formula outside the pt which looks at column B
(where weeknumber is) and works out the 1st date of the week from there.
Thanks in advance.

Signature

Traa Dy Liooar

Jock

Debra Dalgleish - 17 Sep 2007 15:36 GMT
If you use a formula to calculate the week start date, it should only
appear once for each week's dates. For example, with dates in column A:

  =A2-IF(WEEKDAY(A2,2)=7,0,WEEKDAY(A2,2))

Add that field to the Row area, after the month.
The same WeekStart date may appear under two months, if it overlaps.

> Within a pivot table, I have summarised the data firstly by month, then by
> week, then by work type.
[quoted text clipped - 7 lines]
> Thanks in advance.
>  

Signature

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

Jock - 17 Sep 2007 17:00 GMT
Thanks Debra, that's sorted it.
Signature

Traa Dy Liooar

Jock

> If you use a formula to calculate the week start date, it should only
> appear once for each week's dates. For example, with dates in column A:
[quoted text clipped - 15 lines]
> > Thanks in advance.
> >  
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.