Converting year and month into year

baidya91

Board Regular
Joined
Jun 1, 2016
Messages
147
How can I convert 19 years 6 months into 19.5 years in excel?

A1= 19 years 6 months, B1=19.5 years
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
=VALUE(TRIM(LEFT(A1,2)))+VALUE(TRIM(MID(A1,SEARCH("month",A1,1)-3,2))/12)
 
Upvote 0
Hi,

Try this, format the result cells to round to # of digits of your choice:


Book1
AB
119 years 6 months19.5
29 years 11 months9.916667
310 years 10 months10.83333
49 years 9 months9.75
Sheet423
Cell Formulas
RangeFormula
B1=LEFT(A1,2)+MID(A1,SEARCH("years",A1)+6,2)/12
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,326
Messages
6,124,256
Members
449,149
Latest member
mwdbActuary

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