Help with IF / CONTAINS Function
Hi!
I am trying to write a formula that will look at a description column, see if it contains a specific string of text, then return a list of adjacent cells where the formula is true.
Said another way, I want to type a string into a cell (A1), look at the description column on another sheet, then return a list in column B of reference numbers that are adjacent to the cells that contain the string from A1.
Any help would be greatly appreciated!
Best Answer
-
You would need to use a JOIN/COLLECT.
=JOIN(COLLECT({Sheet B Adjacent Column}, {Sheet B A1 Column}, CONTAINS(A1, @cell)), "delimiter_of_choice")
Answers
-
You would need to use a JOIN/COLLECT.
=JOIN(COLLECT({Sheet B Adjacent Column}, {Sheet B A1 Column}, CONTAINS(A1, @cell)), "delimiter_of_choice")
-
That worked perfectly, thanks!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!