+ Reply to Thread
Results 1 to 9 of 9

Formular not working on my computer

  1. #1
    Registered User
    Join Date
    11-15-2012
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    14

    Formular not working on my computer

    I am working with the following formula that works on my supervisor’s laptop (calculates the week number automatically) but does not work on mine: =ROUNDDOWN((D21-DATEVALUE(CONCATENATE("1/1/",TEXT(YEAR(D21),0))))/7,0). I am using Microsoft Excel 2010. Kindly help.
    Last edited by Zundah; 11-15-2012 at 11:14 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,324

    Re: Formular not working on my computer

    Maybe try (untested):

    =ROUNDDOWN((D21-DATEVALUE(CONCATENATE("01/01/",TEXT(YEAR(D21),"0000"))))/7,0)


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,324

    Re: Formular not working on my computer

    Or, again untested:

    =ROUNDDOWN((D21-DATE(YEAR(D21),1,1))/7,0)


    Regards, TMS

  4. #4
    Registered User
    Join Date
    11-15-2012
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Formular not working on my computer

    Thanks. Tried but still not calculating.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,324

    Re: Formular not working on my computer

    All three formulae work and produce the same result on my laptop running Excel 2007:

    HTML Code: 

    So, when you say
    but does not work on mine
    and
    Tried but still not calculating
    what *does* it do?

    Do you have other formulae in the worksheet/workbook? And, if so, do they work?

    It may be sensible to post a sample workbook that exhibits the problem.

    Regards, TMS

  6. #6
    Registered User
    Join Date
    11-15-2012
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Formular not working on my computer

    Thanks man. They all work. Date formats were incompatible. Thanks again.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,324

    Re: Formular not working on my computer

    You're welcome.


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  8. #8
    Registered User
    Join Date
    11-15-2012
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Formular not working on my computer

    Where does one select "Solved"?

  9. #9
    Registered User
    Join Date
    11-15-2012
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Formular not working on my computer

    I got it. Thanks.

+ 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