Hi, how can I get the birth date (YYYY-MM-DD) from a personal number that is just 10 digits?
The personal number is like this: YYMMDDXXXX (9001121515). It has no spaces or anything, just 10 digits.
I have this formula and it works if the person is born before 2000. But for 2000 and afterwards it shows "1900-" instead of "2000". For example, a person with the personal number "2101022222" is shown as "1901-01-02".
The formula right now (D3 is the cell containing the personal number):
I cant change the personal number digits, so I have to come up with a solution . Any idea?
The personal number is like this: YYMMDDXXXX (9001121515). It has no spaces or anything, just 10 digits.
I have this formula and it works if the person is born before 2000. But for 2000 and afterwards it shows "1900-" instead of "2000". For example, a person with the personal number "2101022222" is shown as "1901-01-02".
The formula right now (D3 is the cell containing the personal number):
VBA Code:
=DATE(LEFT(D3;2);MID(D3;3;2);MID(D3;5;2))
I cant change the personal number digits, so I have to come up with a solution . Any idea?
Last edited: