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
- 62.3K Get Help
- 364 Global Discussions
- 200 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives