Originally Posted by
jm22yanks
This worked, but the names with duplicate salaries get matched from bottom of the list to the top (last to first person with the same salary). This isn't a problem, just curious as to why it did that.
Since there are many people with same salary, using match or vlookup formula always return the first match. Index formula is very useful in this case.
ROW($B$2:$B$29)+$C$2:$C$29*1000 returns a vector like this (assume that the salary is 2,430) {2,430,001 ; 2,210,002 ; 2,430,003}
Large() will then sort these values like this {2,430,003 ; 2,430,001 ; 2,210,002}
Using Mod(,1000) to get back the row number then Index formula does its job.
This causes we get the list that matched from bottom to the top.
If you want to avoid it then try (not tested)
Bookmarks