VLOOKUP for highest value
Can someone show me how to use a VLOOKUP for the highest value?
For example:
=VLOOKUP(LARGE([% of Target]1:[% of Target]16, 3), Name1:[% of Target]16, 2)
Basically by the LARGE([% of Target]1:[% of Target]16, 3) I am returning a value of 52% (which is the third highest value). This is automatic. =LARGE([% of Target]1:[% of Target]16, 3) works fine.
After that, I wish to look into the table, and return the Name of the employee that matches the % of Target automatically.
It keeps saying #NO MATCH. Any tips?
Dr. St Nicholas Burrus DHA, PMP
I build Smartsheets for the US Government, State Government, and about a dozen of the US Fortune 100s.
Comments
-
VLOOKUP doesn't work well with formulas just figured that out.
So my workaround was to use the new RANKEQ by @Kara Lumley's team.
=RANKEQ([% of Target]1, [% of Target]1:[% of Target]16)
Used this and a report to SORT 1-3
Dr. St Nicholas Burrus DHA, PMP
I build Smartsheets for the US Government, State Government, and about a dozen of the US Fortune 100s.
-
What about using Max fin the formulat?
-
If the Names were to the right of the % column, the vlookup would work to return the name - you could also use the following to return the employee name: =INDEX(Employee$1:Employee$5, MATCH(LARGE([% of Target]$1:[% of Target]$5, 1), [% of Target]$1:[% of Target]$5, 0))
This returns the highest value - change the value in the LARGE function to meet your needs, i.e. 2nd, 3rd, etc.
See below - I hope that helps?
Sean
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.9K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 458 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives