Return multiple contacts based on department dropdown list.

Hello,
I would like to use a master list with a list of people attached to the department that populates multiple contacts in the same cell depending on what dropdown departments are selected.
So Sheet 1:
Department Email
Marketing Billy@help.com
Operations Bob@help.com
Sheet 2:
Departments (dropdown multi select) Autopopulated info from sheet 1
Marketing Operations Billy@help.com, Bob@help.com
I am able to vlookup if only one department is selected but once multiple are selected I get an error. Does anyone know the appropriate formula to return emails for all departments selected? There are around 34 different department types
Best Answer
-
Hi @BrittneyAnn
Unfortunately, creating multiple contacts with the formula is not possible now.
So, a workaround is to create multiple contact columns like the demo sheet below.
Then, you can use them in workflow automation, for example.
The formulas to create multiple single contacts are as follows;
[Contacts] =JOIN(COLLECT({Master List : Email}, {Master List : Department}, CONTAINS(@cell, Departments@row)), ",") β> This formula just create text outputs, not contacts.
[Count] =COUNT(COLLECT({Master List : Email}, {Master List : Department}, CONTAINS(@cell, Departments@row)))
[Contact 1] =IF(Count@row >= 1, INDEX(COLLECT({Master List : Email}, {Master List : Department}, CONTAINS(@cell, Departments@row)), 1))
[Contact 2] =IF(Count@row >= 2, INDEX(COLLECT({Master List : Email}, {Master List : Department}, CONTAINS(@cell, Departments@row)), 2))
[Contact 3] =IF(Count@row >= 3, INDEX(COLLECT({Master List : Email}, {Master List : Department}, CONTAINS(@cell, Departments@row)), 3)) β¦..By the way, if you use Smartsheet API, creating multiple contacts from emails is possible. Below is a video I posted somewhere in the community to demonstrate that.
Answers
-
Hi @BrittneyAnn
Unfortunately, creating multiple contacts with the formula is not possible now.
So, a workaround is to create multiple contact columns like the demo sheet below.
Then, you can use them in workflow automation, for example.
The formulas to create multiple single contacts are as follows;
[Contacts] =JOIN(COLLECT({Master List : Email}, {Master List : Department}, CONTAINS(@cell, Departments@row)), ",") β> This formula just create text outputs, not contacts.
[Count] =COUNT(COLLECT({Master List : Email}, {Master List : Department}, CONTAINS(@cell, Departments@row)))
[Contact 1] =IF(Count@row >= 1, INDEX(COLLECT({Master List : Email}, {Master List : Department}, CONTAINS(@cell, Departments@row)), 1))
[Contact 2] =IF(Count@row >= 2, INDEX(COLLECT({Master List : Email}, {Master List : Department}, CONTAINS(@cell, Departments@row)), 2))
[Contact 3] =IF(Count@row >= 3, INDEX(COLLECT({Master List : Email}, {Master List : Department}, CONTAINS(@cell, Departments@row)), 3)) β¦..By the way, if you use Smartsheet API, creating multiple contacts from emails is possible. Below is a video I posted somewhere in the community to demonstrate that.
-
Here is a link to a thread that has all of the options for creating multipole, usable contacts in a single cell via formula:
.
Help Article Resources
Categories
Check out the Formula Handbook template!