#1   Report Post  
Posted to microsoft.public.excel.misc
Juran
 
Posts: n/a
Default Week


How can I change the day of the week to week.
Ex.

01/02/06 - week 1
02/10/06 - week 5

Thank you

Juran


--
Juran
------------------------------------------------------------------------
Juran's Profile: http://www.excelforum.com/member.php...o&userid=23592
View this thread: http://www.excelforum.com/showthread...hreadid=544006

  #3   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Week

02/10/06 will not return week 5 regardless using ISO or absolute,

with 02/10/06 in A1

absolute weeknumber

=WEEKNUM(A1) returns 6

The non ATP version


=INT(((A1-DATE(YEAR(A1),1,0))+6)/7)

returns 6


ISO weeknumber

=1+INT(MIN(MOD(A1-DATE(YEAR(A1)+{-1;0;1},1,5)+WEEKDAY(DATE(YEAR(A1)+{-1;0;1},1,3)),734))/7)

returns 6

--

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey


"Juran" wrote in
message ...

How can I change the day of the week to week.
Ex.

01/02/06 - week 1
02/10/06 - week 5

Thank you

Juran


--
Juran
------------------------------------------------------------------------
Juran's Profile:
http://www.excelforum.com/member.php...o&userid=23592
View this thread: http://www.excelforum.com/showthread...hreadid=544006



  #4   Report Post  
Posted to microsoft.public.excel.misc
Ron de Bruin
 
Posts: n/a
Default Week

See also
http://www.rondebruin.nl/weeknumber.htm

And
http://www.rondebruin.nl/isodate.htm

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


"Peo Sjoblom" wrote in message ...
02/10/06 will not return week 5 regardless using ISO or absolute,

with 02/10/06 in A1

absolute weeknumber

=WEEKNUM(A1) returns 6

The non ATP version


=INT(((A1-DATE(YEAR(A1),1,0))+6)/7)

returns 6


ISO weeknumber

=1+INT(MIN(MOD(A1-DATE(YEAR(A1)+{-1;0;1},1,5)+WEEKDAY(DATE(YEAR(A1)+{-1;0;1},1,3)),734))/7)

returns 6

--

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey


"Juran" wrote in message
...

How can I change the day of the week to week.
Ex.

01/02/06 - week 1
02/10/06 - week 5

Thank you

Juran


--
Juran
------------------------------------------------------------------------
Juran's Profile: http://www.excelforum.com/member.php...o&userid=23592
View this thread: http://www.excelforum.com/showthread...hreadid=544006





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
Validation List junoon Excel Worksheet Functions 3 May 12th 06 06:33 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
user defined function Brian Rogge Excel Worksheet Functions 5 May 23rd 05 06:21 PM
Line or bar graphs for tracking stocks profit and loss. Mocity Charts and Charting in Excel 1 January 21st 05 01:21 AM


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

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"