Return results from multiple values- JOIN COLLECT HAS
I need to return data from column5 separated by comma if a record appears in column6 which is a drop down list that can have multiple values per cell.
This is the formular that works only when there is one value in the cell..
=JOIN(COLLECT([Column5]:[Column5], [Column6]:[Column6], "2"), ", ")
This formular gives me INCORRCET ARGUMENT SET =JOIN(COLLECT([Column5]:[Column5], [Column6]:[Column6], HAS([Column6]:[Column6], "2"), ","))
I want results to be "Test, this, should, works, truly"
Best Answer
-
Hi Ann,
You are very close, give this a try: =JOIN(COLLECT([Column5]:[Column5], [Column6]:[Column6], HAS(@cell, "2" )), ",")
Hope this helps!
Answers
-
Hi Ann,
You are very close, give this a try: =JOIN(COLLECT([Column5]:[Column5], [Column6]:[Column6], HAS(@cell, "2" )), ",")
Hope this helps!
-
Thanks Adam, that works beautifully!
I would like to understand why @cell works rather than the column?
-
Hi Ann, you need the @cell because you are trying to evaluate each individual cell within the column, not the column all at once.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.6K Get Help
- 403 Global Discussions
- 215 Industry Talk
- 454 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 56 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!