In looking at this formula, I am pretty sure it does NOT work correctly, so
don't use it.
Rick
"Rick Rothstein (MVP - VB)" <(E-Mail Removed)> wrote in
message news:%(E-Mail Removed)...
>I am guessing no one in your country will ever live to be more than 100?
>Here is a formula that seems to work for those less than 100 years old...
>
> =DATE(1900+100*(IF(LEFT(A1,2)<=RIGHT(YEAR(NOW()),2),IF(--MID(A1,3,2)<=MONTH(NOW()),IF(--MID(A1,5,2)<=DAY(NOW()),1,0),0),0))+LEFT(A1,2),MID(A1,3,2),MID(A1,5,2))
>
> Rick
>
>
> "Hennie Neuhoff" <(E-Mail Removed)> wrote in
> message news:698E7A2E-35A2-4F2B-BE9D-(E-Mail Removed)...
>> In our country all citizens have a unique [13digit] identity number, the
>> first 6 digits being date of bitrh. I've tried to convert these 6 digits
>> to
>> date of birth, without
>> any luck. The main problem being the year of birth forms the first 2
>> digits,
>> ie a person born on 10 February 1952 IDnumber would be 520210[plus 7
>> digits] .
>> Any help would be appreciated
>> HJN
>
|