Multiple IF Statement Returning Different Text
Hi Everyone,
I am trying to write a formula that will look at a cell and if certain wording is not in the cell then return a value to a new cell. The information is from a multiple dropdown selection column. Here is an example of what i am trying to do.
Dropdown List
Would Populate the Missing Color column based on a formula so it would end up looking like this in the sheet
The formula I am trying will populate the first missing color but I can't figure out how to populate all the missing colors. Here is what I have for the formula:
=IF(OR(NOT(CONTAINS("Blue,", Color@row))), "Blue, ", IF(OR(NOT(CONTAINS("Green,", Color@row))), "Green, ", IF(OR(NOT(CONTAINS("Red,", Color@row))), "Red, ")) ETC.
Any help would be greatly appreciated.
Answers
-
Nested IF statements will stop as soon as they find a correct statement. Instead, you'll want to add individual IF statements together when you look for each individual value.
Try something like:
=IF(OR(NOT(CONTAINS("Blue,", Color@row))), "Blue, ") + IF(OR(NOT(CONTAINS("Green,", Color@row))), "Green, ") + IF(... etc
Let me know if that makes sense and works for you.
Cheers,
Genevieve
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.4K Get Help
- 394 Global Discussions
- 213 Industry Talk
- 449 Announcements
- 4.6K Ideas & Feature Requests
- 141 Brandfolder
- 132 Just for fun
- 131 Community Job Board
- 453 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 293 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!