+ Reply to Thread
Results 1 to 4 of 4

Add years to a date dependant on age

  1. #1
    Forum Contributor
    Join Date
    06-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2016
    Posts
    144

    Add years to a date dependant on age

    Hello.

    I'm trying to create a formula that looks at a date of birth in column B, and a date in column C.

    What I need is in column D: if the persons age is less than 45, add 5 years to the date in Column C. If 45 and over add 3 years. However if the person is 44, add 4 years (because once they are 45, the 3 year rule will be enforced)

    The formula I've got is incredibly lengthy and a bit tricky to understand. But mainly the problem I may have is these rules could change soon to: if less than age of 45, add 8 years. Then it will mean if they are 44, add 4 years; 43, add 5 years; 42, add 6 years; and if 41, add 7 years.

    So I'm just wondering if anyone can come up with an easier formula (macros and UDF's not allowed).

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Add years to a date dependant on age

    It might be better to have a little table that shows those ages and the years to add, then you can use a VLOOKUP formula to determine what to add on to the age.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    06-19-2013
    Location
    UK
    MS-Off Ver
    Excel 2016
    Posts
    144

    Re: Add years to a date dependant on age

    It never occured to me to do that. Thanks, this makes it much easier.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Add years to a date dependant on age

    Thanks for the Rep. Perhaps you can mark the thread as SOLVED if you think it is - please select Thread Tools from the menu above your first post and choose Mark Thread as SOLVED.

    Pete

+ 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. Calculate Date 5 years in the future past today's date
    By RickCJ7 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-29-2015, 05:50 PM
  2. Highlight a cell with a date which is coming upto 5 years from a fixed date
    By ItsAllDinx in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-14-2015, 05:33 PM
  3. Pivot Table Date Adding 4 Years and 1 day to Source Data Date
    By dhanni in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 06-05-2014, 02:20 PM
  4. [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
  5. Adding years to a date, but leaving blank if no date in the original cell.
    By buddyhackit9 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-12-2011, 01:17 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