I have two sheets: in the first sheet there's a code that corresponds to a value of the second sheet, how do I replace the code with the value?
First Sheet
Name Last name Job
xxxx xxxxxxxxx 3
xxxx xxxxxxxxx 7
xxxx xxxxxxxxx 5Second sheet
Code Job 3 xxxxxx 4 xxxxxx 5 xxxxxx 6 xxxxxx 7 xxxxxxHow do I replace the job code in the first sheet with the corresponding job text of the second sheet?
21 Answer
You will need in the first sheet a new column, titled for example: Job Name and with the formula:
=VLOOKUP(C2,Sheet2!A2:C30,2,FALSE) Explanation of the function VLOOKUP
=VLOOKUP(lookup value, range containing the lookup value, the column number in the range containing the return value, TRUE for approximate match or FALSE for an exact match).
1