IF(OR(Find Statement
I am trying to build a formula that searches in a column for a certain word using FIND( and I would like to add OR to that. I am using this formula and it is working fine:
=LEFT([Address]@row, FIND("TZ", [Address]@row) - 1)
I would like to add FIND("GZ" so that it returns either after finding "TZ" or "GZ"
Thank you!
Best Answer
-
May not be the best approach but can serve the purpose,
=IF(FIND("TZ", [Address]@row) > 0, LEFT([Address]@row, FIND("TZ", [Address]@row) - 1) , IF(FIND("GZ", [Address]@row) > 0, LEFT([Address]@row, FIND("GZ", [Address]@row) - 1), "No Match" ) )
Answers
-
May not be the best approach but can serve the purpose,
=IF(FIND("TZ", [Address]@row) > 0, LEFT([Address]@row, FIND("TZ", [Address]@row) - 1) , IF(FIND("GZ", [Address]@row) > 0, LEFT([Address]@row, FIND("GZ", [Address]@row) - 1), "No Match" ) )
-
Thank you! @Sameer Karkhanis
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.8K Get Help
- 406 Global Discussions
- 218 Industry Talk
- 457 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 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!