=VLOOKUP(A1,JobTable,MATCH(A5,Fields,0)+1,0)
MATCH(A5,Fields,0)
The 0 means to find an "exact" match of cell A5 (case is not a factor).
MATCH(A5,Fields,0)+1
The +1 is an "offset correction". The MATCH function will return a number from 1 to 3 but we need these numbers to be from 2 to 4 (the relative column numbers of the table).
=VLOOKUP(A1,JobTable,MATCH(A5,Fields,0)+1,0)
The 0 means to find an "exact" match of cell A1 (case is not a factor).
Bookmarks