Forum Discussion
inmansteven
Jul 30, 2020Copper Contributor
Automating The Selection of High Values in Excel
I have Excel Data that looks like this:
Last | Site | Test | Score |
Amaya | One | Ops Skills | 100 |
Brown | Two | Ops Skills | 100 |
Garcia | One | Ops Skills | 100 |
Garcia | One | Ops Skills | 67 |
Jones | Three | Ops Skills | 71 |
Liu | Four | Ops Skills | 90 |
Nguyen | One | Ops Skills | 85 |
Novak | Two | Finance | 81 |
Novak | Two | Finance | 58 |
Patel | Four | Ops Skills | 100 |
Smith | Two | Ops Skills | 100 |
Xi | Three | Finance | 90 |
I would like to select the high value for an individual user and test, automatically, with the query feature in Excel so that I am left with just the high values for each user and test. I'd like the data to look like this:
Last | Site | Test | Score |
Amaya | One | Ops Skills | 100 |
Brown | Two | Ops Skills | 100 |
Garcia | One | Ops Skills | 100 |
Jones | Three | Ops Skills | 71 |
Liu | Four | Ops Skills | 90 |
Nguyen | One | Ops Skills | 85 |
Novak | Two | Finance | 81 |
Patel | Four | Ops Skills | 100 |
Smith | Two | Ops Skills | 100 |
Xi | Three | Finance | 90 |
How might I do this in Excel 2016?
3 Replies
- SergeiBaklanDiamond Contributor
If with Power Query you may query the source, sort ascending names and descending scores, fix in memory by adding index, remove duplicates by all columns but score, remove index, return result into Excel sheet.
- inmanstevenCopper Contributor
Thank you. This was very helpful.
- SergeiBaklanDiamond Contributor
inmansteven , you are welcome