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.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 145 Just for fun
- 63 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 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!