INDEX/COLLECT with both MATCH and CONTAINS criteria
I am looking for help with a cross-sheet INDEX/COLLECT formula. I need to MATCH in one criteria and CONTAINS in another criteria. I can get them working separately but I don't know how to combine into a working formula.
Source Sheet:
Destination Sheet:
In the Attending School column in Destination Sheet, I'd like to populate with the source sheet School value if the Decision contains "Attend" AND the names in both sheets match.
I was able to get the CONTAINS part working with this:
=INDEX(COLLECT({Source SCHOOL}, {Source DECISION}, CONTAINS("Attend", @cell)), 1)
But I don't know how to add in the MATCH portion without an error. Thanks for your help!
Best Answer
-
COLLECT works like a MATCH function with multiple criteria, so you would just add the additional criteria.
=INDEX(COLLECT({Source SCHOOL}, {Source DECISION}, CONTAINS("Attend", @cell), {Source NAME}, Name@row), 1)
Michelle Choate
michelle.choate@outlook.com
Always happy to walk through any project you need help with!
Answers
-
COLLECT works like a MATCH function with multiple criteria, so you would just add the additional criteria.
=INDEX(COLLECT({Source SCHOOL}, {Source DECISION}, CONTAINS("Attend", @cell), {Source NAME}, Name@row), 1)
Michelle Choate
michelle.choate@outlook.com
Always happy to walk through any project you need help with!
-
Thank you @Michelle Choate 2 - that worked!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!