IF, Else, Contains Formula
Hello,
I have a formula in Excel that looks for key letters at the start of string text and if the condition is met, the cell is populated.
The formula needs to be something like:
IF [column]@row contains BM as the first two letters then test 1
IF [column]@row contains RH as the first two letters then test 2
IF [column]@row contains OE as the first two letters then test 3
IF conditions not met then blank
I can write the formula for a simple if statement, but when it comes to multiple contains i get very lost. Your help would be very appreciated.
Tags:
Answers
-
=if(left([column]@row,2) = "BM","test 1",if(left([column]@row,2) = "RH","test 2",if(left([column]@row,2) = "OE","test 3"
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.6K Get Help
- 403 Global Discussions
- 215 Industry Talk
- 455 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 56 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 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!