Converting YEARS and MONTHS to decimal

janema

Board Regular
Joined
Nov 28, 2022
Messages
143
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2011
  5. 2010
Platform
  1. Windows
  2. Mobile
Hello, I am trying to convert the years and months between a date and TODAY into a decimal, but my result is coming back off. I am using the following formula, but it should be returning something like 1.11, but it comes back as 24.00 as shown in that first row. I am not sure why my formula isn't coming back correctly. Thank you so much in advance for your help!

=INT(YEARFRAC(L2,TODAY()))*12

1728421916253.png
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
From 27/2/2022 to today is about 2.6 years (not 1.11).
Your formula is calculating that, but then you are taking the integer (which makes it 2) and then multiply by 12 which then equals 24.

To just get 2.6 you only need
Excel Formula:
=YEARFRAC(L2,TODAY())
 
Upvote 0
From 27/2/2022 to today is about 2.6 years (not 1.11).
Your formula is calculating that, but then you are taking the integer (which makes it 2) and then multiply by 12 which then equals 24.

To just get 2.6 you only need
Excel Formula:
=YEARFRAC(L2,TODAY())

Thank you so much!
 
Upvote 0

Forum statistics

Threads
1,222,642
Messages
6,167,267
Members
452,107
Latest member
cami_dev

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