Convert Decimal Ages to Days Months and Years

Stephen_IV

Well-known Member
Joined
Mar 17, 2003
Messages
1,180
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I have a list of decimal birthdates that I would like to convert to Days, months, and years.
Any help would be appreciated. Thanks in advance!


17.07123288
16.93150685
16.90136986
16.36712329
16.36712329
16.77808219
16.72054795
16.31780822
15.6109589
11.77260274
12.10410959
16.69315068
5.843835616
5.843835616
16.49589041
14.79726027
15.33150685
15.03561644
 
Mr Excel Questions4.xlsm
AB
12
1314.3863013714 Years 5 Months 20 days
Sheet4
Cell Formulas
RangeFormula
B13B13=TEXT(INT(A13),"0") & " Years " &TEXT(MOD(A13,1)*365,"m")&" Months " &TEXT(MOD(A13,1)*365,"d")&" days"
 
Upvote 0

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Realised the days are completely wrong as I forgot to divide by 12, this should be better.
Cell Formulas
RangeFormula
B2:B25B2=LET(m,MOD(A2,1)*12,INT(A2)&" years "&INT(m)&" months "&INT(MOD(m,1)*365/12)&" Days")
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top