+ Reply to Thread
Results 1 to 8 of 8

Strange Errors in calculating Week-No

  1. #1
    Registered User
    Join Date
    09-27-2006
    Posts
    5

    Strange Errors in calculating Week-No

    Hi all

    I'm using the formula " ="W."& WEEKNUM(M20,1)" to calculate number of week and return the result W. Weekno.

    However, i have to double click to this cell and press enter to get the result, or else the cell would display #Name ?

    Can you help to give me the solution

    Thanx much

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394
    Do you have calculation set to automatic? Tools\Options\Calculation\Automatic. Try pressing f9 rather than editing the cell, as this is a manual recalc.

    Matt

  3. #3
    Registered User
    Join Date
    09-27-2006
    Posts
    5

    Hi Matt

    Even i've tried that, but still display #NAME, the error message is "Occurs when Microsoft Excel doesn't recognize text in a formula."

    ="W."& WEEKNUM(I27,1) => #NAME. You have to double click the cell, then it displays => W.WNo

    Could you please to help all ?

    Many thanks
    Dung

  4. #4
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by dvdung
    Even i've tried that, but still display #NAME, the error message is "Occurs when Microsoft Excel doesn't recognize text in a formula."

    ="W."& WEEKNUM(I27,1) => #NAME. You have to double click the cell, then it displays => W.WNo

    Could you please to help all ?

    Many thanks
    Dung
    Heve you tried removing the space from the formula? (it shouldn't make a difference . . . but . . )

  5. #5
    Registered User
    Join Date
    09-27-2006
    Posts
    5

    Thanks Bryan

    Let's me try, however the error does not come from generated excel file but from the program that extracts .

  6. #6
    Registered User
    Join Date
    09-10-2007
    Posts
    1

    date error name

    The format is text in M21 the formula will not work unless it is an actual date. Test the cell and see if it is actually a date. I think you are importing this data from some other worksheet or program other than excel, the data may look like a date but in reality only be text. By changing the format to another date format mmm/dd/yyyy to m/d/yy for cell M21, if it does not change the way it is displayed it is not a (date) format, and when you manually enter the date you are then deleting the text data replacing it with a actual date. Temporarily widen the column it is in, it is aligns to the left it is not a date value, date values will align to the right of the column edge. Or another test you can do, in another open cell enter the formula " =ISNUMBER(M20)" it should return a 'TRUE" if it is a date and "FALSE" if it is something other. When importing a simple thing as a space can cause an error in the formula.

  7. #7
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Try This

    put the date in cell A1 then use this formula elsewhere:

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

    that should bring up the current week number of the year!!

    HTH

    Dave
    Mr MaGoo
    Magoo.Inc MMVII

    If i've helped please add to my Rep by Clicking on the Blue Scales in the top right hand corner of the post

  8. #8
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    oops

    I guess then you could use the above formula for 2 dates then minus the 2 numbers?

+ 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