+ Reply to Thread
Results 1 to 7 of 7

generating year of birth based on date and age

  1. #1
    Registered User
    Join Date
    06-28-2016
    Location
    amman
    MS-Off Ver
    2003
    Posts
    2

    generating year of birth based on date and age

    Hi, I am looking for ways to generate a date of birth for a spreadsheet I have.
    There is only Age at the moment, if I add a fixed date and month (let's say 1st January) - how can I generate DOB based on that?

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,498

    Re: generating year of birth based on date and age

    so, let's say you have the age in cell A2 (like 22) and today() in cell B2, this would generate a "rough" DOB =B2-A2
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    06-28-2016
    Location
    amman
    MS-Off Ver
    2003
    Posts
    2

    Re: generating year of birth based on date and age

    thanks a lot for this, how would excel identify age (22) as a year and not a number?

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,498

    Re: generating year of birth based on date and age

    so for year, if you type in 2016 into cell B2 or this in to B2 =YEAR(TODAY()) then use the same subtraction as post #2 =B2-A2 then format as a number you will have the year of birth. Just so you understand, it will not be completely accurate unless your ages are very accurate.
    So in my first example, the age of 22 and the year of 2016 will get you 1994 as the year of birth. If you have 22.216 as the age you get 1994 as year, if you have 22.618 as the age you get 1993. So accuracy will be dependent on the accuracy of the age.

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,498

    Re: generating year of birth based on date and age

    how would excel identify age (22) as a year and not a number?
    I'm not sure I understand your question. Did you try the recommendation in post #4?
    Uploading a sample spreadsheet could help get you a better answer.

  6. #6
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,292

    Re: generating year of birth based on date and age

    Try this:
    Please Login or Register  to view this content.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  7. #7
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: generating year of birth based on date and age

    If you're wanting to generate representative Dates of Birth, I'd suggest using 30th June or 1st July instead of 1st January - that way there's a 50/50 chance (approximately) that the DoB is at least in the right year. That would make popipipo's formula into this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

+ 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. Work out Term of Birth by Date of Birth
    By sezza79 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-18-2014, 11:06 AM
  2. Formulas Calculating Age based on Date of Birth & Date of Death
    By MELLOW YELLOW in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-07-2014, 03:27 PM
  3. [SOLVED] Need help in sorting date of birth irrespective of year
    By SMILE in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-07-2013, 06:05 AM
  4. Formula to Calculate Age based on date of birth
    By Squint in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-25-2013, 10:05 PM
  5. Need help in adjusting date of birth year
    By ChetForce in forum Excel General
    Replies: 5
    Last Post: 05-08-2012, 11:15 AM
  6. Converting Date of Birth to 'Term of Birth'
    By Kungfusal in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-26-2009, 04:12 AM
  7. [SOLVED] Producing Age Based on Date of Birth
    By MPuser in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-30-2005, 06:25 PM

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