Data Analytics 8
Data Analytics 8
8) Consider the data of 20 employee are stored into two different tables. First
table consists of Name, Employee ID, and second table consists of Employee ID,
Salary. Find the employee salary using lookup table from second table to first.
Solution:-
Step 1:- Create two tables as given in the question.
Step 2:- We have to follow the following syntax to find the employee salary using lookup
table.
For the above table give the VLOOKUP function range as follows
=VLOOKUP(C5,J5:K24,2,FALSE)
For the following VLOOKUP input value we get the following output:-
Step 3:- Now select the 2000 output data row and drag down from last column and till last
row+…we get the employee salary by using the VLOOKUP function from the second table.