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
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 58 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!