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?
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?
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
thanks a lot for this, how would excel identify age (22) as a year and not a number?
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.
I'm not sure I understand your question. Did you try the recommendation in post #4?how would excel identify age (22) as a year and not a number?
Uploading a sample spreadsheet could help get you a better answer.
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
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: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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks