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
- Smartsheet Customer Resources
- 62.4K Get Help
- 364 Global Discussions
- 202 Industry Talk
- 430 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!