If cell contains any of "apples", "oranges", "pears" in text string then collect

Hi, I have a column where I want to basically extract certain words from it without having to create multi helper columns.
If I do a nested IF(OR(contains) statement or an IF(and nested statements it will look for conditions in order but I want to evaluate and return any of the certain words.
I can do this with helper columns and concatenate but wondering if there is another solution to avoid this?
Many thanks
Answers
-
If I understand your need correctly, you would add a series of IF statements together (not nesting).
=IF(CONTAINS("Apples", [Column Name]@row), "Apples" + CHAR(10), "") + IF(CONTAINS("Oranges", [Column Name]@row), "Oranges" + CHAR(10), "") + IF(CONTAINS("Pears", [Column Name]@row), "Pears", "")
-
do you know what Paul, I even played around with "and(if" and totally missed just stacking the formulas in cell! thank you, will try this!
-
works perfectly thanks again
-
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.7K Get Help
- 438 Global Discussions
- 152 Industry Talk
- 497 Announcements
- 5.3K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 77 Community Job Board
- 509 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 307 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!