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

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi

A8DMEi3.jpg
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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