I think I had a similar issue. I got help from someone and he used the VLOOKUP function.
For example, if your list of people you want salaries for is list 2, and the list of salaries for everyone is list 1 this formula will give you the resulting table below
=IFERROR(VLOOKUP(D3,$A$3:$B$9,2,0),"")
$A$3:$B$9 is the array. "D3" is the value you are going to search for in the array. "2" is the second column of the array, "0" tells the formula the results have to match exactly (e.g. Mike does not also include Mikel [if there was one]).
Bookmarks