0
Thanks

A few words of thanks would be greatly appreciated.

Excel - Date format to get term for Expiration date

Issue

I have Purchase date and expiration date in a format of yyyy/mm/dd. I want to get the term of how long will it take from purchase date to expiration.

Example: Purchase date 2010/01/01
Expiration date 2011/01/01

The term of that warrant would be 1year.

Solution

I have been supposed that you put the purchase date in A2 and the expiration date in B2:

The formula will be :

=(B2-A2)/365 

and after personalize the cell format as : # ##0\[$year(s)-1]

Note

Thanks to aquarelle for this tip on the forum.

0
Thanks

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.
This document, titled « Excel - Date format to get term for Expiration date », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).