+ Reply to Thread
Results 1 to 4 of 4

formula needed to add a number of years to a date

  1. #1
    Registered User
    Join Date
    09-18-2013
    Location
    Scarborough,Ontario
    MS-Off Ver
    Excel 2010
    Posts
    3

    formula needed to add a number of years to a date

    I need a formula the will allow me to add years, in number form with decimals, to a birthdate and give me the date the person will turn that age. For example, cell A1 has a dte of birth in it, say July 1/1975 , cell B1 has 25.5 in it, I need the formula for C1 that will tell me, in date form, the day the person turned or turns 25.5

    Thanks
    Last edited by Maryjoefernandez; 09-18-2013 at 11:12 PM.

  2. #2
    Forum Contributor
    Join Date
    10-12-2012
    Location
    Bournemouth
    MS-Off Ver
    Excel 2010 / Excel 2007
    Posts
    126

    Re: formula needed to add a number of years to a date

    I think to be the most accurate you might want to have in C1

    Please Login or Register  to view this content.
    Then in D1

    Please Login or Register  to view this content.
    For your example, this would return 23/12/2000 which is when they would turn 25.5

    If you change it to 25 it should then return 1/7/2000. It has potential to be out by a day or so here and there due to leap years, hence the x 365.3 to try and take this into account

  3. #3
    Forum Contributor
    Join Date
    10-12-2012
    Location
    Bournemouth
    MS-Off Ver
    Excel 2010 / Excel 2007
    Posts
    126

    Re: formula needed to add a number of years to a date

    Actually, sorry - put this in C1 and do it all in one cell...

    Please Login or Register  to view this content.
    It's still early in the morning for me.....

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: formula needed to add a number of years to a date

    The SUM function works but is not necessary:

    =B1*365.3+A1

    Also note that when you are working with fractions of ages and dates, you have to take into account leap year, which cheeze83 has done by adding 0.3 to the number of days in a year (a more precise number would be 365.256363004).

    Note that this adjustment is only correct with regard to the calendar when your span is exactly 4 years, otherwise the answer will be a fraction of a day larger than the calendar. This is probably fine depending on your purpose, especially since you are not giving the exact time of a person's birth; just using the day for the birthday will use 00:00 of that day.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Age based on DOB; Accounts for leap years. Years old if >2, Months if <2 years old.
    By sharpmel in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-17-2013, 04:20 PM
  2. Replies: 4
    Last Post: 01-07-2013, 08:54 PM
  3. adding years and months
    By sagar in forum Excel General
    Replies: 6
    Last Post: 09-25-2009, 11:32 AM
  4. Adding years to a date
    By sumitk in forum Excel General
    Replies: 4
    Last Post: 05-18-2006, 04:15 PM
  5. Adding easy
    By cj21 in forum Excel General
    Replies: 5
    Last Post: 02-15-2006, 10:55 AM

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