Thread
:
How do I convert 'YYYYMMDD to an age in Excel?
View Single Post
#
2
Posted to microsoft.public.excel.newusers
Sandy Mann
external usenet poster
Posts: 2,345
How do I convert 'YYYYMMDD to an age in Excel?
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
with @tiscali.co.uk
"BearlyCat" wrote in message
...
I exported some data from Acess to Excel but my DOB field has 'YYYYMMDD and
I
need it to show as an age. It's storing it as text b/c of the ' in front
of
the number. For example I have '19990501 for someone born May 1, 1999.
I'd
love to find an easy way to make that show up as 7. The last time we did
this, we had to go through about 5 or 6 steps. Any suggestions?
Reply With Quote
Sandy Mann
View Public Profile
Find all posts by Sandy Mann