How to capture a value from multi-select column
Which formula works better to find out if a value exists in a multi select dropdown column? I have responses collected from a survey and one of the column was multi-select dropdown list type column. I'm trying to separate out the selection values and adding them in a separate sheet (so using cross sheet reference).
Have tried following variations so far, and they only worked for the first value from the multi select column
=COUNTIFS({Email}, {Email} = Email@row, {committee selection}, CONTAINS("Business/ Content", {committee selection}))
=COUNTIFS({Email}, {Email} = Email@row, {committee selection}, HAS("Business/ Content", {committee selection}))
=COUNTIFS({Email}, {Email} = Email@row, {committee selection}, {committee selection} = "Business/ Content")
Best Answer
-
The example given in the HAS function page is if the column being tested is a string text. It should be working fine on a dropdown list.
Another option to try would be the FIND function, where you can only check for a string of 3/4 characters that is unique to each value would do the trick too.
=COUNTIFS({Email}, Email@row, {committee selection}, FIND("ss/ C",@cell)>0)
Should return all Business/ Content items as long as there is not another item with the "ss/ C" string within it :)
If I remember correctly, items in multi dropdown list are separated by two spaces or CHAR(10).
Hope it helped!
Answers
-
I am trying to do the exact same thing and just emailed support. There must be a way!!
-
Hi @ameyaa & @Tracy PIneda
Since you're going with multi select dropdown list, you should use HAS as it's specificly designed for this.
So use this:
=COUNTIFS({Email}, Email@row, {committee selection}, HAS("Business/ Content",@cell))
Make sure it's written exactly the same as in the dropdown list as in the HAS function. Use the @cell argument to tell smartsheet to perform this operation on every cell of the preceding range.
Hope it helped!
-
Hi @David Joyeuse,
Thanks for your quick reply. I tried your formula and it partially worked. It only worked in cases where "Business/ Content" was the only option selected. It ignored cases where more than one option were selected. The other thing I noticed, all the formulae I have tried so far only count the first selected value.
As i was reading up on "HAS" function usage, they said it'll return "true" only if the content matches exactly otherwise it returns "false". which means it'll discard all occurrences of multiple values.
The HAS function is designed to work with multi-select dropdown and multi-contact columns. It won’t cause an error if used with other column types, but it will only return “true” if the criterion exactly matches the contents of the specified cell.In the example above, if [Day of Week]1 is in a Text/Number column, HAS will return “true” if [Day of Week]1 = “Monday” but will return “false” if [Day of Week]1 = “Monday Tuesday.”
I'll keep trying. Thanks again for your help.
-
The example given in the HAS function page is if the column being tested is a string text. It should be working fine on a dropdown list.
Another option to try would be the FIND function, where you can only check for a string of 3/4 characters that is unique to each value would do the trick too.
=COUNTIFS({Email}, Email@row, {committee selection}, FIND("ss/ C",@cell)>0)
Should return all Business/ Content items as long as there is not another item with the "ss/ C" string within it :)
If I remember correctly, items in multi dropdown list are separated by two spaces or CHAR(10).
Hope it helped!
-
Thanks @David Joyeuse , let me try this.
-
@David Joyeuse worked! Thank you so much!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!