How do we create CASE statements in Smartsheet by Multiple IF statements?
I'm having an UNPARSEABLE error when trying to createa a formula to get a "30 Days" category from a field which used to be "free-form" and recently just became a dropdown. Hence I get "30 Days" or "30 days" in the field. Below is the formula, what is causing the error?
=IF(CONTAINS("30 Days",[Business Retention],1),"30 Days",
IF(CONTAINS("30 Days",[Business Retention - Other],1),"30 Days",
IF(CONTAINS("30 days",[Business Retention],1),"30 Days",
IF(CONTAINS("30 days",[Business Retention - Other],1),"30 Days", "Others"))))
Answers
-
Hi @molson ,
Try putting "@row" after the column names and see if that helps. So each would look like this - "[Business Retention]@row" as an example.
Hope that helps,
Dave
-
Thank you Dave! The @row worked together with removing the ",1" inside the CONTAINS arguments.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 284 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!