Year Support Contracts - Automation to update end date
We use the following formula to populate the end date of a one year contract. Namely if it starts the 1st Oct 2022 the contract expires on the 30th Sept 2023. This formula works for every other day in the month except when the renewal falls on the 1st ?
=IFERROR(DATE(YEAR([Support Contract Start Date]@row) + 1, MONTH([Support Contract Start Date]@row), DAY([Support Contract Start Date]@row) - 1), "Not on Support")
Thanks
Answers
-
Because you are currently subtracting 1 from the DAY. If the DAY is already the first then this outputs 0 which is an invalid value for a day within the DATE function. Try outputting the full DATE (+1 year) and then subtract 1 from the DATE as opposed to the DAY. Instead of subtracting 1 from the DAY, you want to subtract 1 from the DATE.
Basically... Move the "- 1" to the right of the closing parenthesis that is currently coming after it.
=IFERROR(DATE(YEAR([Support Contract Start Date]@row) + 1, MONTH([Support Contract Start Date]@row), DAY([Support Contract Start Date]@row)) - 1, "Not on Support")
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 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
Check out the Formula Handbook template!