Help: Return the number of years and months between dates

andrepr

New Member
Joined
Aug 27, 2008
Messages
2
Seems simple but I just cannot get this to work. Have 2 date cells, Lease Starts, Lease ends. Need to return how many years, months & days between these dates, rounded up. Example: Lease Start: 23 Mar 2007; Lease Ends 27 April 2008. Result should be: 1 Year 1 Month 5 Days.

SO always round up years first, then count months and remining days.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Try

=DATEDIF(A1,B1,"y") & " y " & DATEDIF(A1,B1,"ym") & " m " & DATEDIF(A1,B1,"md")+1&" d"
 
Upvote 0
Thanks for swift response!!!

Almost there... Used Start: 1 July 2003; End Date: 31 May 2013.

Result is 9 y 10 m 31 d.

Days should be rounded up to 11 months 0 days. If I change the date to 1 June result is 11 m 1d - How do I get zero days and correct months.

Same for years. If I change end date to 30 June 2013 - should be 10 years 0 months 0 days as result. Instead result is 9 y 11m 30 d

Any suggestion??
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,260
Members
452,627
Latest member
KitkatToby

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