Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.newusers
|
|||
|
|||
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? |
#2
Posted to microsoft.public.excel.newusers
|
|||
|
|||
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? |
#3
Posted to microsoft.public.excel.newusers
|
|||
|
|||
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? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Convert Project template for Excel | Excel Discussion (Misc queries) | |||
Running Excel 2000 VBA Application on Excel 2003 | Excel Worksheet Functions | |||
How do I convert Excel 2003 to Excel 98 format? | New Users to Excel | |||
How do I convert a csv file to an Excel file? | Excel Discussion (Misc queries) | |||
Improve Convert function in Excel | Excel Worksheet Functions |