join, collect with multiple entries
This formula in the "Also Notified" column works perfectly for one "Deputy" with one or more "Deputy Back-Up Contacts"
=JOIN(COLLECT({Deputy Back-Up Contacts Range 4}, {Deputy Back-Up Contacts Range 1}, Deputy@row), ", ")
However, when more than one Deputy is selected, the formula should return all the Back-Up Contacts for all Deputies selected. Instead it comes back blank. (for example, Aaron has four Deputy Back-Up Contacts and Gabby has one, so five emails should be listed.
Answers
-
try this
=JOIN(COLLECT({Deputy Back-Up Contacts Range 4}, {Deputy Back-Up Contacts Range 1}, HAS(@cell, Deputy@row)), ", ")
Does that work for you?
Kelly
-
Unfortunately, no. It still returns a blank cell. Is there a way to string together two JOIN functions? One that joins all the contacts listed in the Deputy column and the associated Back-Up Contacts?
-
Hey Gabby
Somewhat surprisingly, there isn't a straight-forward way to do this. I had to do something very similar on one of my sheets this past week and, because I very rarely have more than three names in your equivalent of "Deputy", I parsed the names out individually into helper columns and then joined multiple collects together. I couldn't figure out another way to do it. Is the number of deputies a small number?
If you're interested in parsing into multiple helper columns, I'll be happy to help. Or, feel free to mark the post as unresolved and the community will give it a try. There was a question asked today regarding multi-selects and collects. You might want to watch any answers to that question.
Kelly
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 67 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!