Help! Multiselect Column Formula with INDEX, MATCH and HAS
Hello Smartsheet World!
I am attempting to run a formula that will return contact emails depending on which departments are selected in a multi-select dropdown column.
Sheet 1: Improvement Notes Smartsheet
-Dept Attention column is a multi-select dropdown
-Department Contacts column (in green) is a contact list that allows multiple contacts (this is where I want to add a formula that auto-populates the contacts based on the departments selected in the Dept Attention column)
Sheet 2: Department Contact Guide Smartsheet
- Smartsheet that the formula would reference to lookup which contacts are associated with each department
From my research, I've seen a combination of formulas but am stumped on what direction to take:
=IF(NOT(ISBLANK([Department Attention@row])), INDEX(COLLECT({Department Contact Guide Contacts }, {Department Guide Dept Attention}, HAS(@cell, [Department Attention@row]), 1), " ")
The formula needs to be fixed and I'm unsure if I'm doing this right or if what I'm attempting to accomplish is possible.
Any guidance is greatly appreciated!
-Alexis
Best Answers
-
There is currently no way to use a formula to output multiple usable emails into a single cell (at least not easily).
You would have to create a table that has every possible combination accounted for, then you can INDEX/MATCH. But you cannot use a JOIN function to pull in both the IT people and the HR people from two different cells into one and have them as usable contacts.
You can pull them in, but it would be stored as a text string and really informational only (can't be used in automations and whatnot).
-
Happy to help. 👍️
Answers
-
There is currently no way to use a formula to output multiple usable emails into a single cell (at least not easily).
You would have to create a table that has every possible combination accounted for, then you can INDEX/MATCH. But you cannot use a JOIN function to pull in both the IT people and the HR people from two different cells into one and have them as usable contacts.
You can pull them in, but it would be stored as a text string and really informational only (can't be used in automations and whatnot).
-
Thank you Paul, this is very helpful!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 437 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 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!