#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 42
Default Week

Hi,

I had a file with different date on it.
If I need to consolidate them into week.
example
4 Jan to 10 Jan is call week 1
11 Jan to 17 jan is week 2
is it possible to calculator 22 Mar is in which week(week 12)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 23
Default Week

On Jan 22, 7:56*am, Sky wrote:
Hi,

I had a file with different date on it.
If I need to consolidate them into week.
example
4 Jan to 10 Jan is call week 1
11 Jan to 17 jan is week 2
is it possible to calculator 22 Mar is in which week(week 12)


Assuming your date is in B4.

Try this to get the standard ISO week number : =INT((B4-DATE(YEAR(B4-
WEEKDAY(B4-1)+4),1,3)+WEEKDAY(DATE(YEAR(B4-WEEKDAY(B4-1)+4),1,3))+5)/
7)
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Week

=WEEKNUM(A1,2)-1
--
David Biddulph

"Sky" wrote in message
...
Hi,

I had a file with different date on it.
If I need to consolidate them into week.
example
4 Jan to 10 Jan is call week 1
11 Jan to 17 jan is week 2
is it possible to calculator 22 Mar is in which week(week 12)



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default Week

If A1 contains 22/3/2010 as a real Excel date then
=WEEKNUM(A1,1)-1
returns 12.
Analysis Toolpak is needed!

--
Regards!
Stefi



€žSky€ť ezt Ă*rta:

Hi,

I had a file with different date on it.
If I need to consolidate them into week.
example
4 Jan to 10 Jan is call week 1
11 Jan to 17 jan is week 2
is it possible to calculator 22 Mar is in which week(week 12)

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 42
Default Week

Hi Stefi,

Cannot get it.
May I know what is returns 12 and Analysis Toolpak is needed mean?

"Stefi" wrote:

If A1 contains 22/3/2010 as a real Excel date then
=WEEKNUM(A1,1)-1
returns 12.
Analysis Toolpak is needed!

--
Regards!
Stefi



€žSky€ť ezt Ă*rta:

Hi,

I had a file with different date on it.
If I need to consolidate them into week.
example
4 Jan to 10 Jan is call week 1
11 Jan to 17 jan is week 2
is it possible to calculator 22 Mar is in which week(week 12)



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Week

"Returns 12" means that the result of the calculation is 12. Analysis
Tookpak is an add-on that must be loaded before the function specified will
work. Go to ToolsAddons to load it. You only have to do it once.

Regards,
Fred

"Sky" wrote in message
...
Hi Stefi,

Cannot get it.
May I know what is returns 12 and Analysis Toolpak is needed mean?

"Stefi" wrote:

If A1 contains 22/3/2010 as a real Excel date then
=WEEKNUM(A1,1)-1
returns 12.
Analysis Toolpak is needed!

--
Regards!
Stefi



€žSky€ť ezt Ă*rta:

Hi,

I had a file with different date on it.
If I need to consolidate them into week.
example
4 Jan to 10 Jan is call week 1
11 Jan to 17 jan is week 2
is it possible to calculator 22 Mar is in which week(week 12)


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Week

Doesn't that change on a Sunday, rather than changing on a Monday as the OP
requested [assuming that the OP's dates are this year]?

Shouldn't it be =WEEKNUM(A1,2)-1 ?
--
David Biddulph

"Stefi" wrote in message
...
If A1 contains 22/3/2010 as a real Excel date then
=WEEKNUM(A1,1)-1
returns 12.
Analysis Toolpak is needed!

--
Regards!
Stefi



"Sky" ezt írta:

Hi,

I had a file with different date on it.
If I need to consolidate them into week.
example
4 Jan to 10 Jan is call week 1
11 Jan to 17 jan is week 2
is it possible to calculator 22 Mar is in which week(week 12)



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
Convert regular Date to Week Ending or Week Beginning Dates Sam H Excel Discussion (Misc queries) 5 April 3rd 23 04:39 PM
week end and week so far results formular in % format happyhammer Excel Discussion (Misc queries) 3 August 11th 09 09:01 PM
Auto calculate day of week to week of the year (not as serial) oftenconfused Excel Discussion (Misc queries) 4 June 23rd 08 05:14 PM
How do I set up a week by week skill training schedule in excel? davidwatts Excel Discussion (Misc queries) 0 June 16th 05 11:32 PM
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


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