Extract Multiple Text
Hi all,
I have a drop-down list that has multiple selections, and I want to extract all of the text within parentheses into one cell.
Greatly appreciated if anyone can help.
Best Answer
-
How do you want to show it extracted.
One way this can be done is you have a separate list of all these 'Z numbers' on another sheet.
then on this sheet you use the formula below (change cross sheet reference as needed):
=JOIN(COLLECT({cross sheet to list}, {cross sheet to list}, CONTAINS(@cell, Codes@row)), " ")
This will just bring them in separated by a space.
You may need to add on this other sheet a column with the parentheses (to avoid bringing back partial matches):
=JOIN(COLLECT({cross sheet to list}, {cross sheet to list with parentheses}, CONTAINS(@cell, Codes@row)), " ")
Answers
-
How do you want to show it extracted.
One way this can be done is you have a separate list of all these 'Z numbers' on another sheet.
then on this sheet you use the formula below (change cross sheet reference as needed):
=JOIN(COLLECT({cross sheet to list}, {cross sheet to list}, CONTAINS(@cell, Codes@row)), " ")
This will just bring them in separated by a space.
You may need to add on this other sheet a column with the parentheses (to avoid bringing back partial matches):
=JOIN(COLLECT({cross sheet to list}, {cross sheet to list with parentheses}, CONTAINS(@cell, Codes@row)), " ")
-
This is exactly what I was looking for! Thanks a lot!
-
If you need to do something a bit more complicated then you can use the below examples:
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!