JOIN(COLLECT 2 CONTAINS criteria with multiple returns Cross Sheet
Hello!
I'm looking to build a JOIN(COLLECT that will allow me to pull email addresses from a contact sheet based on two criteria. Both criteria have to be CONTAINS. They will be the Department (Dept) and the Job Title (Role).
I frequently send out emails based on department, but also specifically to the managers of those departments (which change with some frequency). Also to all managers, regardless of department.
Ideally, I would like to be able to input the Department name, as well as the Role group, to narrow down to only the email addressed I need.
Below are the two formulas I have that work. I would like to combine them so that I have a role within a department option.
=JOIN(COLLECT({Contact Email2}, {Cost Code}, CONTAINS(Dept@row, @cell)), "; ")
=JOIN(COLLECT({Contact Email2}, {Job Title2}, CONTAINS(Role@row, @cell)), "; ")
Thank you!
Best Answer
-
Hi @Patsy Peterson
Hope you are fine, please try the following formula:
=JOIN(COLLECT({Contact Email2}, {Cost Code}, CONTAINS(Dept@row, @cell), {Job Title2}, CONTAINS(Role@row, @cell)),":")
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
Answers
-
Hi @Patsy Peterson
Hope you are fine, please try the following formula:
=JOIN(COLLECT({Contact Email2}, {Cost Code}, CONTAINS(Dept@row, @cell), {Job Title2}, CONTAINS(Role@row, @cell)),":")
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
Almost! It only returns one result, but at least it returns something.
-
If you like share me as an admin on a copy of your sheet after removing any sensitive data and I will check it for you.
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
I appreciate the offer, but we have it locked down to only our own domain.
-
@Bassam Khalil This actually did work, it was user error causing the malfunction.
Once I changed the ":" to "; ", the wrap text displayed all the results.
Thank you so much for your help!
-
Excellent, I will be happy to help you any time.
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 412 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 140 Just for fun
- 57 Community Job Board
- 461 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!