PC Review


Reply
Thread Tools Rate Thread

Is 4th January 2010 = Week 2??

 
 
nginhong
Guest
Posts: n/a
 
      4th Jan 2010
Dear all,

Happy New Year!

I am using the following formula to show week number
="WEEK " & WEEKNUM(NOW(),1)

However I notice today 4th January 2010 turns out to be WEEK 2 and the
correct WEEK number should be 1 instead.

Do you think there is something wrong with the formula?
Also how to show correct week number from a date like 4th January 2010 is
equal to W101 or 10W1?

Your support is greatly appreciated.

Kind regards,
Ngin Hong
 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      4th Jan 2010
Look in Excek help for weeknum and you'll see why. If you want the ISO week
number use Chip pearson's function

Public Function IsoWeekNumber(InDate As Date) As Integer
Dim D As Long
D = DateSerial(Year(InDate - Weekday(InDate - 1) + 4), 1, 3)
IsoWeekNumber = Int((InDate - D + Weekday(D) + 5) / 7)
End Function


Mike

"nginhong" wrote:

> Dear all,
>
> Happy New Year!
>
> I am using the following formula to show week number
> ="WEEK " & WEEKNUM(NOW(),1)
>
> However I notice today 4th January 2010 turns out to be WEEK 2 and the
> correct WEEK number should be 1 instead.
>
> Do you think there is something wrong with the formula?
> Also how to show correct week number from a date like 4th January 2010 is
> equal to W101 or 10W1?
>
> Your support is greatly appreciated.
>
> Kind regards,
> Ngin Hong

 
Reply With Quote
 
David Biddulph
Guest
Posts: n/a
 
      4th Jan 2010
Yes, with either of the options for Excel's WEEKNUM function, 4th Jan 2010
is in week 2. Jan 1 was in week 1, and the new week starts on either Sunday
or Monday.

If you want a week number that is one less than Excel's week number, so that
January 1st is in week zero, you could use =WEEKNUM(TODAY())-1
If you want some different definition of week number, tell us your
definition and we can tell you the formula.
You may find some useful information at
http://www.cpearson.com/Excel/WeekNumbers.aspx or
http://www.rondebruin.nl/weeknumber.htm
--
David Biddulph

"nginhong" <(E-Mail Removed)> wrote in message
news:AAC79F99-C737-41CE-B7F8-(E-Mail Removed)...
> Dear all,
>
> Happy New Year!
>
> I am using the following formula to show week number
> ="WEEK " & WEEKNUM(NOW(),1)
>
> However I notice today 4th January 2010 turns out to be WEEK 2 and the
> correct WEEK number should be 1 instead.
>
> Do you think there is something wrong with the formula?
> Also how to show correct week number from a date like 4th January 2010 is
> equal to W101 or 10W1?
>
> Your support is greatly appreciated.
>
> Kind regards,
> Ngin Hong



 
Reply With Quote
 
Tor
Guest
Posts: n/a
 
      18th Jan 2010
This one will do the trick for an ISO WEEK number in the cell:
=INT((L2-DATE(YEAR(L2-WEEKDAY(L2-1)+4);1;3)+WEEKDAY(DATE(YEAR(L2-WEEKDAY(L2-1)+4);1;3))+5)/7)

---
frmsrcurl: http://msgroups.net/microsoft.public...ry-2010-Week-2
 
Reply With Quote
 
Suchitra
Guest
Posts: n/a
 
      19th Jan 2010
Hi... But 03-Jan-2010 is week01 but when we apply the above mentioned formula it shows - week 53


---
frmsrcurl: http://msgroups.net/microsoft.public...ry-2010-Week-2
 
Reply With Quote
 
itsme
Guest
Posts: n/a
 
      28th Jan 2010
this should work as well: =WEEKNUM(NOW()) -
Hope this helps!

---
frmsrcurl: http://msgroups.net/microsoft.public...ry-2010-Week-2
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
8th January 2010 Becky News Editions 0 8th Jan 2010 07:17 PM
6th January 2010 Becky News Editions 0 6th Jan 2010 06:19 PM
Is 4th January 2010 = Week 2?? nginhong Microsoft Excel Worksheet Functions 4 6th Jan 2010 01:23 AM
4th January 2010 Becky News Editions 0 4th Jan 2010 06:15 PM
Week Number is incorrect for January 2005 - shows as Week 2 =?Utf-8?B?Q2hlcnls?= Microsoft Access Queries 5 9th Nov 2004 05:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:04 PM.