Vlookup finds some value in the leftmost column of a range and returns a value some number of columns to the right and in the same row.
Let's say you want to find the surname of Employee ID 2 from this table:
=VLOOKUP(2,$A$2:$C$4,3,0)
Note that if there is no exact match on the employee ID, the VLOOKUP
will return #N/A
.