Re: How do I convert 'YYYYMMDD to an age in Excel?

S

Sandy Mann

With your downloaded DOB in G1 try:

=DATEDIF(DATE(--LEFT(G1,4),MID(G1,5,2),--RIGHT(G1,2)),TODAY(),"y")

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
(e-mail address removed) with @tiscali.co.uk
 
G

Guest

or

=DATEDIF(TEXT(G1,"0000-00-00"),TODAY(),"y")

Sandy Mann said:
With your downloaded DOB in G1 try:

=DATEDIF(DATE(--LEFT(G1,4),MID(G1,5,2),--RIGHT(G1,2)),TODAY(),"y")

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
(e-mail address removed) with @tiscali.co.uk
 
S

Sandy Mann

Yes - nice one!

--
Regards,

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
(e-mail address removed) with @tiscali.co.uk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

O.T. What's happening in the Newsgroups? 5
12MMT - How ? 5
OT Question About Norman Harker 5
Replace Macro 8
Gedneral question 1

Top