Index Match not working with multiple options
I am trying to get a formula to work with multiple options selected in the reference sheet. The reference sheet has a Unit column and multiple contact columns. The contact columns are based off the roles within the unit. I have several formulas based off the Unit column. Some units have the same contact list, so I have multiple selected, (from a drop-down list) in a row on the reference sheet. The formula works for Unit rows that only have one unit selected.
=INDEX({St Gab Organization Superintendent}, MATCH(Unit@row, {St Gab Organization Unit}, 0))
I am trying to figure out how to get this to work without having to break it down by every single unit. For instance, if unit 1A, 1B, 1C, and 1D have the same unit contacts, I want to have them listed on the same row, in the reference sheet. However, only one unit will be listed on the sheet with the formula.
I am sorry if I did not explain this every well. Can someone help me get this to work?
Best Answers
-
Hi @tsetto2,
You were on the right track when you looking at INDEX/COLLECT. Try the following.
=INDEX(COLLECT({St Gab Organization Superintendent}, {St Gab Organization Unit}, HAS(@cell, Unit@row)), 1)
Hope this helps,
Dave
-
@tsetto2 Give this a go:
=IFERROR(INDEX(COLLECT({St Gab Organization Superintendent}, {St Gab Organization Unit}, HAS(@cell, Unit@row)), 1), "")
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Answers
-
Are you able to provide screenshots (with sample data if needed) for context?
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Hey Paul,
I have a reference sheet created that has the management team associated with a unit (see picture 1). If I only have one unit in the row (rows 1-4), my formula will correctly pull emails into another sheet. If I have multiple units selected in the reference row (row 5), my formula will only work if I have those same units in the sheet collecting the information.
I get #NO MATCH each time I try to put the unit individually, in the sheet with the formula (see picture 2, unit A1). I have tried it with Index Collect and could not get it to work.
The formula I use is listed below. I want my reference sheet to have multiple units in the row. However, I want the sheet using the formula to only have one unit associated with each row.
=INDEX({St Gab Organization Superintendent}, MATCH(Unit@row, {St Gab Organization Unit}, 0))
-
Hi @tsetto2,
You were on the right track when you looking at INDEX/COLLECT. Try the following.
=INDEX(COLLECT({St Gab Organization Superintendent}, {St Gab Organization Unit}, HAS(@cell, Unit@row)), 1)
Hope this helps,
Dave
-
@tsetto2 Give this a go:
=IFERROR(INDEX(COLLECT({St Gab Organization Superintendent}, {St Gab Organization Unit}, HAS(@cell, Unit@row)), 1), "")
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
@Paul Newcome and @DKazatsky2 Thank you both!!! The formulas work!
-
Happy to help. 👍️
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.9K Get Help
- 379 Global Discussions
- 210 Industry Talk
- 441 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 300 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!