ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I display months and years between two dates (https://www.excelbanter.com/excel-discussion-misc-queries/848-how-do-i-display-months-years-between-two-dates.html)

JSmith

How do I display months and years between two dates
 
I need to display the months and years between two dates in two separate
fields.

I want a result such as 3 months, 2 years with months in B1 and years in B2.

Any suggestions? Thank you!

Don Guillett

later date in f5, earlier in f4
=DATEDIF(F5,F4,"m")

--
Don Guillett
SalesAid Software

"JSmith" wrote in message
...
I need to display the months and years between two dates in two separate
fields.

I want a result such as 3 months, 2 years with months in B1 and years in

B2.

Any suggestions? Thank you!





All times are GMT +1. The time now is 03:07 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com