Months Remaining Formula
Trying to come up with a formula to calculate the duration of contract between 2 dates regardless of todays date with a result in months. Then, how do I get the remaining months on the contract from todays date - in months - over multiple years - and if the start date has not began yet.
Best Answer
-
Hi @Scotty Bob
Think these may work for you
Terms in month -
=SUM(12 * (YEAR([End date]@row) - YEAR([Start date]@row)), MONTH([End date]@row) - MONTH([Start date]@row))
Months remaining, just substitute your start date for todays date -
=SUM(12 * (YEAR([End date]@row) - YEAR(TODAY())), MONTH([End date]@row) - MONTH(TODAY()))
Hope that helps,
Thanks
Paul
Answers
-
Hi @Scotty Bob
Think these may work for you
Terms in month -
=SUM(12 * (YEAR([End date]@row) - YEAR([Start date]@row)), MONTH([End date]@row) - MONTH([Start date]@row))
Months remaining, just substitute your start date for todays date -
=SUM(12 * (YEAR([End date]@row) - YEAR(TODAY())), MONTH([End date]@row) - MONTH(TODAY()))
Hope that helps,
Thanks
Paul
-
Thank you Paul!
-
I'm using the formula below to calculate the Terms in Months - based on the Start and End dates columns. Based on the results I see - it doesnt look like it is calculating the full months. Almost as if it is one month less.
=SUM(12 * (YEAR([End Date]@row) - YEAR([Start Date]@row)), MONTH([End Date]@row) - MONTH([Start Date]@row))
-
Hi @Scotty Bob
Try thinking of the months simply as numbers to see what you'll calculate:
June (6) - July (7) = -1 *then adding 12 for each year difference
December (12) - January (1) = 11 *then adding 12 for each year difference
June (6) - June (6) = 0 *then adding 12 for each year difference
If you want to include the end month as an additional month (so June - June = 1, instead of 0) then you can +1 to the end of your formula:
=SUM(12 * (YEAR([End Date]@row) - YEAR([Start Date]@row)), MONTH([End Date]@row) - MONTH([Start Date]@row) + 1)
Cheers,
Genevieve
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.9K Get Help
- 441 Global Discussions
- 153 Industry Talk
- 501 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 79 Community Job Board
- 511 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!