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 help? 👀 | 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 help? 👀 | 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 help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
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!