Possibly a Match/Index or a Vlookup Question. Conditional formatting for a lookup table.
Hi everyone,
I'm currently having an issue trying to pull the names of the team members with the highest score in each team. I am able to pull the highest score on each team with a formula that looks something like:
=MAX(COLLECT({Smartsheet Range 2}, {Smartsheet Range 1}, "Team 1"))
=MAX(COLLECT({Smartsheet Range 2}, {Smartsheet Range 1}, "Team 2"))
=MAX(COLLECT({Smartsheet Range 2}, {Smartsheet Range 1}, "Team 3"))
However, I am trying to pull the names of these people.
For Team 1 my return should be "Sammy Voisens", Team 2 should return "Michaela Chuam", Team 3 should return "Orlando Barrio".
I've been looking into Vlookups and Match/Index formulas but I can't get them to work when making the lookup tables conditional (by team). How do I approach this? What is the solution?
Best Answer
-
Hi John,
Similar to the MAX(COLLECT, you can do this with an INDEX(COLLECT. For example:
=INDEX(COLLECT({range to pull from}, {first criteria range}, first criteria, {second criteria range}, second criteria), 1)
In your case, since you've already pulled the value of the max points with the other formula, you can reference the cell that has that value pulled as one of the criteria above:
=INDEX(COLLECT({Name Column}, {Total Points column}, [Max Points]@row, {Team Column}, "Team Name"), 1)
Let me know if this works for you, or if you would like any further clarification.
Cheers!
Genevieve
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions
Answers
-
Hi John,
Similar to the MAX(COLLECT, you can do this with an INDEX(COLLECT. For example:
=INDEX(COLLECT({range to pull from}, {first criteria range}, first criteria, {second criteria range}, second criteria), 1)
In your case, since you've already pulled the value of the max points with the other formula, you can reference the cell that has that value pulled as one of the criteria above:
=INDEX(COLLECT({Name Column}, {Total Points column}, [Max Points]@row, {Team Column}, "Team Name"), 1)
Let me know if this works for you, or if you would like any further clarification.
Cheers!
Genevieve
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions
-
This worked! Thank you Genevieve!
-
Wonderful!! So glad this worked for you 🙂
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.2K Get Help
- 431 Global Discussions
- 152 Industry Talk
- 490 Announcements
- 5.2K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 74 Community Job Board
- 501 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 306 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!