JOIN COLLECT with OR criterion?
Answers
-
Or this if you don't want the commas - and make it a multi select drop down to remove duplicates.
=IF(HAS(Positions@row, "Communications"), JOIN(COLLECT({ERT Emails}, {status}, "Active", {Region}, HAS(Regions@row, @cell), {ERT Functions}, HAS(@cell, "Communications")), char(10)), "")
+char(10)+IF(HAS(Positions@row, "ERC"), JOIN(COLLECT({ERT Emails}, {status}, "Active", {Region}, HAS(Regions@row, @cell), {ERT Functions}, HAS(@cell, "ERC")), char(10)), "")
+char(10)+IF(HAS(Positions@row, "Finance"), JOIN(COLLECT({ERT Emails}, {status}, "Active", {Region}, HAS(Regions@row, @cell), {ERT Functions}, HAS(@cell, "Finance")), char(10)), "")
+char(10)+IF(HAS(Positions@row, "HR"), JOIN(COLLECT({ERT Emails}, {status}, "Active", {Region}, HAS(Regions@row, @cell), {ERT Functions}, HAS(@cell, "HR")), char(10)), "")
+char(10)+IF(HAS(Positions@row, "Logistics"), JOIN(COLLECT({ERT Emails}, {status}, "Active", {Region}, HAS(Regions@row, @cell), {ERT Functions}, HAS(@cell, "Logistics")), char(10)), "")
+char(10)+IF(HAS(Positions@row, "Planning"), JOIN(COLLECT({ERT Emails}, {status}, "Active", {Region}, HAS(Regions@row, @cell), {ERT Functions}, HAS(@cell, "Planning")), char(10)), "")
+char(10)+IF(HAS(Positions@row, "Programs"), JOIN(COLLECT({ERT Emails}, {status}, "Active", {Region}, HAS(Regions@row, @cell), {ERT Functions}, HAS(@cell, "Programs")), char(10)), "")
+char(10)+IF(HAS(Positions@row, "REC"), JOIN(COLLECT({ERT Emails}, {status}, "Active", {Region}, HAS(Regions@row, @cell), {ERT Functions}, HAS(@cell, "REC")), char(10)), "")
+char(10)+IF(HAS(Positions@row, "Safety & Security"), JOIN(COLLECT({ERT Emails}, {status}, "Active", {Region}, HAS(Regions@row, @cell), {ERT Functions}, HAS(@cell, "Safety & Security")), char(10)), "")
-
@LizTo any luck?
-
Oh my goodness, I can't believe you took the time to sort this out for me! It is working beautifully. And making it a multiselect dropdown to remove duplicates was a great suggestion, too.
Thank you so much, that was a big help and I really appreciate it!
-
Love to hear that it's working 😃
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.2K Get Help
- 431 Global Discussions
- 152 Industry Talk
- 490 Announcements
- 5.2K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 74 Community Job Board
- 501 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 306 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!