How to do lookup for multi select dropdown cell to return results for all selected items in cell?
Hi I'm trying to do a lookup or index/match or whatever that can search all values in a dropdown list cell with multiple values and return multiple values.
Sheet 1 screenshot (yellow highlight is where I want formula to be):
Sheet 2 screenshot (contains table of lookup values):
I'm trying formula from this question from before: https://community.smartsheet.com/discussion/comment/346853#Comment_346853
But I'm not getting it to work and get #UNPARSEABLE error
=JOIN(DISTINCT(COLLECT({DocumentName}, {RowID}, CONTAINS(@cell, GroupedList@row ))), SUBSTITUTE($LineBreak$1, "-", ""))
Best Answer
-
It is working in my sheet. I can confirm this works with cross sheet references as well.
Answers
-
Hi @Xlookup,
Give this a try.
=JOIN((COLLECT({DocumentName}, {RowID}, CONTAINS(@cell, GroupedList@row))), CHAR(10))
Hope this helps,
Dave
-
I get multiple results from this and seems fairly successful, is it possible to organize these results into a multi select dropdown option?
Also this formula seems to be pulling EXTRA results in the formula. Like more results than the total of selected options in a single dropdown cell. How do I fix that? I'm getting values pulled from like 80-90 rows up from where I'm doing the lookup
Edit: Can't figure out issue where formula is pulling EXTRA values. For example, I have a cell that only has 1 drop down select option and for some reason this formula returns TWO document names back which can't be correct
-
Give this a try:
=JOIN(COLLECT({DocumentName}, {RowID}, HAS(GroupedList@row, @cell)), CHAR(10))
-
Switching from CONTAINS to HAS results in a blank cell, no values returned. Sticking with CONTAINS for now
-
It is working in my sheet. I can confirm this works with cross sheet references as well.
-
Thank you, this worked. Now do you have any insight on how to get my formula column to populate as a multi select cell? It's currently formatted as a text/number column.
-
You would just need to change the column type to a dropdown and allow multiple selections. The CHAR(10) delimiter in the formula is the line break which is the same delimiter used on the back-end. Once you adjust the column type, it should look the same as the [Formula] column in my last screenshot.
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.5K Get Help
- 448 Global Discussions
- 145 Industry Talk
- 481 Announcements
- 5.1K Ideas & Feature Requests
- 85 Brandfolder
- 152 Just for fun
- 73 Community Job Board
- 492 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 304 Events
- 37 Webinars
- 7.3K Forum Archives