Contains Formula

Jen Evans
โญโญ
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
- 67.9K Get Help
- 474 Global Discussions
- 208 Use Cases
- 517 Announcements
- 5.6K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 84 Community Job Board
- 521 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 309 Events
- 37 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!