DOB from ID number

MarkCBB

Active Member
Joined
Apr 12, 2010
Messages
497
Hi there,

I am looking for a formula to workout the DOB (In date format) of an Id number, been playing around with LEFT, RIGHT,TEXT, but so far no luck.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
What do you mean?
Is there correlation between the two? If so, what is it?

Maybe you could post an example with your expected result.
 
Upvote 0
The ID number of a person contains thier DOB in the first 6 numbers. i.e. 8604171234567
the DOB of that ID is 17/04/1986.

here is some more sample data:

5101011412088 - DOB should be 1/1/1951
6501280416083 - DOB should be 28/1/1965
5406061279083
8702200579087
6309090874081
8406295862081
 
Upvote 0
Code:
=DATE(LEFT(A1,2),MID(A1,3,2),MID(A1,5,2))
and format cell in desired date format.
 
Upvote 0
Hi there,

HOTPEPPER, yours returned an Error, #Value, not sure why, probably me doing something wrong.

jonmo1 & Joe4, your formula works.

thanks to all 3 of your for your speedy responses.
 
Upvote 0
It probably depends on your regional settings - this version with TEXT function should work for you

=TEXT(LEFT(A1,6),"00-00-00")+0

format as date

....this one also has the advantage (?) of recognising 21st century DOBs according to regional settings, e.g. with my settings years up to 29 will be interpreted as 21st century and years after 29 will be interpreted as 20th century
 
Upvote 0

Forum statistics

Threads
1,223,981
Messages
6,175,768
Members
452,668
Latest member
mrider123

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top