Edate formula
I want to calculate the contract expiry date based on the current contract term.
If the day of start date <=15, the expiry date should be the last day of the previous month
if the day of start date is the expiry date should be the last day of the current month
any help would be great
thank you
Tags:
Answers
-
Try something like this...
=IF(DAY([Current Contract Start Date]@row)<= 15, DATE(YEAR([Current Contract Start Date]@row), MONTH([Current Contract Start Date]@row), 1), IFERROR(DATE(YEAR([Current Contract Start Date]@row), MONTH([Current Contract Start Date]@row) + 1, 1), DATE(YEAR([Current Contract Start Date]@row) + 1, 1, 1))) - 1
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!