Edate formula

smartuser2021
ββ
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
- 67.9K Get Help
- 474 Global Discussions
- 208 Use Cases
- 517 Announcements
- 5.6K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 84 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 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!