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
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!