Contains Formula
I currently have a formula that looks to see if a specific phrase is contained within a range of cells:
=IF(CONTAINS("Apple", Fruit1:Test1), "Fruit")
Is there a way to have the formula look for another phrase as well?
ie)
=IF(CONTAINS("Apple" or "Orange", Fruit1:Test1), "Fruit")
or something along those lines?
Tags:
Best Answer
-
=IF(or(CONTAINS("Orange", Fruit1:Test1),CONTAINS("Apple", Fruit1:Test1)), "Fruit"
you could write it out like this
Answers
-
=IF(or(CONTAINS("Orange", Fruit1:Test1),CONTAINS("Apple", Fruit1:Test1)), "Fruit"
you could write it out like this
-
@L@123 That worked great, thank you!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!