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?
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.8K Get Help
- 376 Global Discussions
- 207 Industry Talk
- 438 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 451 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 282 Events
- 32 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!