Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 318
Default group sales by week and week number

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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default group sales by week and week number

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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default group sales by week and week number

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

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 318
Default group sales by week and week number

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

  #5   Report Post  
Posted to microsoft.public.excel.misc
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



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default group sales by week and week number

Hi Wanna Learn

If you want to filter on weeks then look at EasyFilter
http://www.rondebruin.nl/easyfilter.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl



"Wanna Learn" wrote in message ...
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



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 318
Default group sales by week and week number

Dave Now I understand. Here is the formula I'm using WEEKNUM(AE3-7) and it
seems to give me the correct week number. for example 11 08 -05 should be
week 45, but if I don't use -7 gives week 46 . should I continue to use this
formula

"Dave F" wrote:

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

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 318
Default group sales by week and week number

Ron thank you I do have the Easy Filter.......great tool!

"Ron de Bruin" wrote:

Hi Wanna Learn

If you want to filter on weeks then look at EasyFilter
http://www.rondebruin.nl/easyfilter.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl



"Wanna Learn" wrote in message ...
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




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
Calculate sales in the week by day ? Vass Excel Worksheet Functions 6 March 8th 06 04:50 PM
Macro to copy cells to rows below [email protected] Excel Discussion (Misc queries) 1 January 20th 06 06:59 PM
Macro to insert copied cells [email protected] Excel Discussion (Misc queries) 17 January 18th 06 10:40 AM
I need week number in excell from a date, first week must be mini. jPeich Excel Discussion (Misc queries) 4 January 5th 05 01:21 AM
Convert week number into calendar month? WickyWick Excel Worksheet Functions 2 November 9th 04 09:01 PM


All times are GMT +1. The time now is 01:13 AM.

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

About Us

"It's about Microsoft Excel"