View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Dave F Dave F is offline
external usenet poster
 
Posts: 2,574
Default group sales by week and week number

7 doesn't divide into 365 evenly....365/7 = 52.14285714, so the last day or
two of the year is the 53rd week.

Dave
--
Brevity is the soul of wit.


"Wanna Learn" wrote:

THanks Dave Question I have the analysys tool pak however when I entered
the date 12 31 05 the results is week 53?

"Dave F" wrote:

BTW, if you have the analysis toolpak installed, you can use the built-in
function WEEKNUM to return the week number of a date.
--
Brevity is the soul of wit.


"Dave F" wrote:

Assuming your date is in B6, run this formula down a helper column
=TRUNC(((B6-DATE(YEAR(B6),1,0))+6)/7) for the absolute week number.

Then either create a pivot table or use the SUBTOTAL function to subtotal by
week number.

If you want more info on the formula above, see this:
http://www.cpearson.com/excel/weeknum.htm

Dave
--
Brevity is the soul of wit.


"Wanna Learn" wrote:

Hello I have a large spreadsheet over 10 thousand lines ... How do I
group the sales by weeks , and I also need the week number of the year.
example I want to group all the sales for Nov 7 2005 to Nov 13 then what
is the week number for Nov 7 2005 thru Nov 13 2005 thank you