+ Reply to Thread
Results 1 to 9 of 9

calculate a person's age based on the age they were on a specific date of each year

  1. #1
    Registered User
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    9

    Angry calculate a person's age based on the age they were on a specific date of each year

    Basically, I'm trying to find a person's age as of any date based on the age they were on April first for insurance purposes.

    So if looking at a person on 9/18/13 (today()) who was born on 5/1/83, they would be counted as the age of 29 NOT 30 because as of 04/1/13 they were still 29. Seems easy enough to write into a formula so I can record it into a macro but because I am not focusing on the year when I go to adjust their age it is not recognizing my MMDD as a date.

    First I calculated their date as of today. (Today()-(DOBcell)/365.25

    Then I wanted to say if they were born between the months of 04/01 and today subtract 1[/B]. This is where I am simply trying to say =if (and(the DOB>April 1, DOB<=Today()), Age-1, age)

    The part that doesn't work is trying to find out if their birth month and date is less than or equal to today.

    =IF(AND(MONTH(AB2)> MONTH(AA$1),MONTH(AB2)>=MONTH(AD$1),Z2-1,Z2)

    Any ideas...I've tried everything but Excel is not able to tell me which is greater when only looking at a month and day and not a year. I may need to rethink this whole thing.

    Thank you in advance!!!!!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: calculate a person's age based on the age they were on a specific date of each year

    See this...

    http://www.cpearson.com/Excel/datedif.aspx
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: calculate a person's age based on the age they were on a specific date of each year

    Hello
    I was working on this formula when Tony replied. It uses the DATEDIF function as he suggests. Assuming you are trying to work out the age from the DOB to the 1st of April in the current year, does the following formula work?

    Please Login or Register  to view this content.
    DOB is the cell with the date of birth.

    DBY

  4. #4
    Registered User
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: calculate a person's age based on the age they were on a specific date of each year

    Thank you!

  5. #5
    Registered User
    Join Date
    06-07-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: calculate a person's age based on the age they were on a specific date of each year

    Thank you. I had thought of datedif but I didn't know there was a way to pull the current year and set a month and date. This was so helpful and I am making notes of all of this.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: calculate a person's age based on the age they were on a specific date of each year

    You're welcome!

  7. #7
    Registered User
    Join Date
    05-02-2005
    Posts
    56

    Re: calculate a person's age based on the age they were on a specific date of each year

    OK Guys next query

    I have DOB in cell A34 19/11/1959 with formula =DATEDIF(A34,TODAY(),"y")&" years "&DATEDIF(A34,TODAY(),"ym")&" months "&DATEDIF(A34,TODAY(),"md")&" days" giving me 53 yrs 10 months 3 days
    below it i have in cell A35 22/02/1974 with formula =DATEDIF(A35,TODAY(),"y")&" years "&DATEDIF(A35,TODAY(),"ym")&" months "&DATEDIF(A35,TODAY(),"md")&" days" giving me 39 yrs 7 months days

    Question what formula / or how do i subtract the later to work out the difference between the two dod to show me in Years Months and Days

  8. #8
    Registered User
    Join Date
    05-02-2005
    Posts
    56

    Re: calculate a person's age based on the age they were on a specific date of each year

    PLEASE IGNORE DONE IT

    OK Guys next query

    I have DOB in cell A34 19/11/1959 with formula =DATEDIF(A34,TODAY(),"y")&" years "&DATEDIF(A34,TODAY(),"ym")&" months "&DATEDIF(A34,TODAY(),"md")&" days" giving me 53 yrs 10 months 3 days
    below it i have in cell A35 22/02/1974 with formula =DATEDIF(A35,TODAY(),"y")&" years "&DATEDIF(A35,TODAY(),"ym")&" months "&DATEDIF(A35,TODAY(),"md")&" days" giving me 39 yrs 7 months days

    Question what formula / or how do i subtract the later to work out the difference between the two dod to show me in Years Months and Days

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: calculate a person's age based on the age they were on a specific date of each year

    thorrr...
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. Replies: 8
    Last Post: 05-10-2013, 05:37 AM
  2. Replies: 3
    Last Post: 08-14-2012, 05:14 AM
  3. [SOLVED] calculate the absent of a specific person for whole year
    By dinesh4you in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-08-2012, 02:26 AM
  4. Replies: 3
    Last Post: 03-12-2009, 09:54 AM
  5. Year-to-Date totals for each person
    By darkwood in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-23-2007, 09:44 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