Subtracting to Produce a Year, from Dates

MsCake

New Member
Joined
Nov 13, 2017
Messages
2
Hi all,

I have 3 dates that I am working with.
A date that I need to find the number of years from today (this is a date someone started with our company)....This I have accomplished by using the following =DATEDIF(D21,NOW(),"Y")&"years,"&DATEDIF(D21,NOW(),"ym")&"months"

Then I have 2 more cells with 2 different dates (a date that they took a leave, and the 2nd date - the date they returned from said leave) and I have accomplished this with the following =DATEDIF(I21,J21,"y")&"years,"&DATEDIF(I21,J21,"ym")&"months"

**I can make the first have the year and month as well with: =DATEDIF(D21,NOW(),"Y")&"years,"&DATEDIF(D21,NOW(),"ym")&"months"


What I am trying to ultimately accomplish is a year (months displaying is fine as well), which will give me the total number of years with our company less the amount of time on leave.

Any help would be greatly appreciated. I have tried a few things, but, amd not getting my desired result.

Thank you
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi

A8DMEi3.jpg
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,215
Members
453,024
Latest member
Wingit77

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