ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   How do I convert 'YYYYMMDD to an age in Excel? (https://www.excelbanter.com/new-users-excel/125951-how-do-i-convert-yyyymmdd-age-excel.html)

BearlyCat

How do I convert 'YYYYMMDD to an age in Excel?
 
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?

Sandy Mann

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?




daddylonglegs

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

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

"Sandy Mann" wrote:

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?





Sandy Mann

How do I convert 'YYYYMMDD to an age in Excel?
 
Yes - nice one!

--
Regards,

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


with @tiscali.co.uk


"daddylonglegs" wrote in message
...
or

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

"Sandy Mann" wrote:

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?








All times are GMT +1. The time now is 08:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com