+ Reply to Thread
Results 1 to 14 of 14

Date Calculations Are Wrong

Hybrid View

moley165 Date Calculations Are Wrong 05-04-2012, 04:03 AM
arlu1201 Re: Date Calculations Are... 05-04-2012, 04:08 AM
Fotis1991 Re: Date Calculations Are... 05-04-2012, 04:08 AM
moley165 Re: Date Calculations Are... 05-04-2012, 04:23 AM
moley165 Re: Date Calculations Are... 05-04-2012, 04:30 AM
arlu1201 Re: Date Calculations Are... 05-04-2012, 04:19 AM
Pepe Le Mokko Re: Date Calculations Are... 05-04-2012, 04:22 AM
arlu1201 Re: Date Calculations Are... 05-04-2012, 04:24 AM
Marcol Re: Date Calculations Are... 05-04-2012, 04:24 AM
Pepe Le Mokko Re: Date Calculations Are... 05-04-2012, 04:27 AM
Fotis1991 Re: Date Calculations Are... 05-04-2012, 04:26 AM
arlu1201 Re: Date Calculations Are... 05-04-2012, 04:30 AM
Fotis1991 Re: Date Calculations Are... 05-04-2012, 04:38 AM
Fotis1991 Re: Date Calculations Are... 05-04-2012, 04:32 AM
  1. #1
    Registered User
    Join Date
    03-30-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    73

    Date Calculations Are Wrong

    Hello All,


    When I am using sums to work out how old some one is from todays date to the date of birth. It isnt working out right for example if i was born on the 16/03/1988 and today being 04/05/2012 it is saying im 23 when i should be 24. anyone know how to get this calc to work out the correct date of birth 100% of the time?


    Kind Regards


    Ricky

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Date Calculations Are Wrong

    I am getting 24 as the answer. What formula are you using?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Date Calculations Are Wrong

    Hi Ricky

    One way is this.

    =(TODAY()-A1)/365,25

    A1, is your Birthday date.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    03-30-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Date Calculations Are Wrong

    =SUM((E24-E23)/365) this is the sum i have been using but it seems to be producing either one year to old or one year to young

  5. #5
    Registered User
    Join Date
    03-30-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    73

    Re: Date Calculations Are Wrong

    pepe le mokko

    thank you seems to be working

    brilliant!

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Date Calculations Are Wrong

    Fotis,

    I guess you do not need the ,25 part of the formula. Excel does not accept it and changed it to "/36525".

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,626

    Re: Date Calculations Are Wrong

    Try
    =DATEDIF(A1,today(),"y")
    where A1 holds your birth day

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Date Calculations Are Wrong

    I just tried a lil different way. =today()-A1 (where A1 is the birthday) and custom formatted the answer as "yy".

  9. #9
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Date Calculations Are Wrong

    Or try this ...
    =DATEDIF(A1,TODAY(),"y")
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  10. #10
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,626

    Re: Date Calculations Are Wrong

    Quote Originally Posted by Marcol View Post
    Or try this ...
    =DATEDIF(A1,TODAY(),"y")
    Thanks for agreeing with me

  11. #11
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Date Calculations Are Wrong

    @ Arlette.

    My logic, is this(One Excel Guru, explained to me some years ago and i angee with this)

    If we do =TODAY()-A1, Then we get the numbers of dates.

    We need to convert this number of days into a number of years. Most years have 365 days but every fourth year has 366 days. So the average number of years is 365.25.

  12. #12
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Date Calculations Are Wrong

    I agree with you Fotis. Actually, as per your computer setting, you use "," instead of ".". I didnt change it at my end and hence the confusion. Sorry about that.

  13. #13
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Date Calculations Are Wrong

    @ moley165

    Pepe's formula works perfectly and of course you can use it. But, just i want to say that mine, gives you the same result...

    Have a nice day.

  14. #14
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Date Calculations Are Wrong

    Never mind!

+ 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