+ Reply to Thread
Results 1 to 4 of 4

Excel 2007, weeknum() returning incorrect number

  1. #1
    Registered User
    Join Date
    01-17-2007
    Posts
    13

    Excel 2007, weeknum() returning incorrect number

    Hi there.

    I need to use weeknum() for a number of situations in a project I'm working on.

    But when I use =WEEKNUM(DATE(2010;1;31)) it returns 6, instead of 4 as it should. Using it on today's date returns correct number.

    I'm clueless as to why...

    Any ideas?
    Last edited by jakobahman; 08-13-2009 at 03:48 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Excel 2007, weeknum() returning incorrect number

    See Help for the WEEKNUM function -- the first week is the one that starts on a Saturday or Sunday, possibly in the prior year, and ends in the specified year.

    31 Jan would never be in week 4 for any year.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Excel 2007, weeknum() returning incorrect number

    Hi,

    More info on WEEK NUMBERING here

    http://www.rondebruin.nl/weeknumber.htm
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  4. #4
    Registered User
    Join Date
    01-17-2007
    Posts
    13

    Re: Excel 2007, weeknum() returning incorrect number

    Quote Originally Posted by shg View Post
    See Help for the WEEKNUM function -- the first week is the one that starts on a Saturday or Sunday, possibly in the prior year, and ends in the specified year.

    31 Jan would never be in week 4 for any year.
    Ahh... Where I am from we use the ISO standard, where the week starts with a Monday. And that is why 31 Jan would be on week 4 in 2010(week 1 starts Jan 4th).

    Thanks for the link oldshippy, that made it all clear.
    Attached Images Attached Images

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1