Set an Expiry Date based on a drop-down selection
Hello All,
Wondering if somebody can help me out with this formula below:
I need to set an "Expiry Date" based on the selection of a dropdown menu which is logic carried over from a form (simple "YES" or "NO"). See below:
=IF(Fab logic@row = "NO", Created@row + 15, IF(Fab logic@row = "YES", Created@row + 30))
I've tried multiple revisions to the syntax but nothing seems to generate a proper date.
I've also tried using a helper column, where by if the Sales Rep does not select a Fabricator in the form (the "NO" answer), automation sets helper column to "15 Days". Then, I tried using that column and pointing to it with drop-down selection, but did not get anywhere either.
Can somebody help me figure out where I'm going wrong here? Would prefer simple method which I mentioned initially with "YES" or "NO" logic.
Thank you in advance!
Answers
-
Hi! You may want to review the IF function page - IF Function | Smartsheet Learning Center
Try breaking your IF function into the 3 parts to write them out logically and then combine them into the actual IF function with commas between them.
If Fab logic answer is NO: [Fab logic]@row = "NO"Then add 15 days to Created date: Created@row + 15
Else/otherwise add 30 days to Created date: Created@row + 30
All together: =IF([Fab logic]@row = "NO", Created@row + 15, Created@row + 30)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.1K Get Help
- 450 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!