Accounting for the word "Perpetual" in a date field when there is no end date
I am currently running this formula: =[Contract Expiration Date]@row - [Notify days to renew/cancel]@row to calculate the date when we need to review a contract. It essentially takes the end date of the contract and subtracts the numbers of days specified in the contract if you want to cancel. We have some contracts with no end dates that we designate as "Perpetual" in the Contract Expiration Date field. How do I update my formula to account for if Contract Expiration Date is "Perpetual" then return "Perpetual" and if not, then do the formula above?
Best Answer
-
=IF([Contract Expiration Date]@row = "Perpetual", "Perpetual", [Contract Expiration Date]@row - [Notify days to renew/cancel]@row)
That should do it
Answers
-
=IF([Contract Expiration Date]@row = "Perpetual", "Perpetual", [Contract Expiration Date]@row - [Notify days to renew/cancel]@row)
That should do it
-
Thanks David - worked like a charm. I could have sworn I tried that but I must have missed a comma!
-
No worries. Very easy to do.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 58 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!