Have you taken a look at the VLOOKUP FAQ I have in the FAQ section?
How does VLOOKUP work??
faq68-4743
Using your formula as quoted
=VLOOKUP(B2,emp,2,FALSE)
which just for the record can also be written
=VLOOKUP(B2,emp,2,0)
What that formula is going to try to do is to take a value that you specify (in this case whatever is in B2), and then go and look it up in a table (In this case a table named 'emp').
It will look for that value in the leftmost column of the table, and either find it or the closest match (In this case an exact match because you specified that by using FALSE/0 as your optional 4th argument), and will then return the corresponding value on the same row, in whatever column of that table that you tell it to (In this case the second column, which you specified by using 2 as your second argument):-
Example - With say the number 10 in B2, and the following table named 'emp', and by that I mean you have selcted the range D1:E5 and done Insert / Name / Define / name it 'emp' but without the quotes obviously.
D E
1 1 0.20
2 10 0.25
3 20 0.30
4 30 0.35
5 40 0.40
So, with the formula being =VLOOKUP(B2,emp,2,0) it will first take the value in B2 which is 10, then go look for it in the leftmost column (D) of your specified table 'emp', and it will then try to find that number. It will find the 10, and the 2 in the formula says to go and get the value in the 2nd column (E) in your table, that is on the same row as the 10. That value in this case is
0.25
If you put the value 20 or 30 etc into B2 now, you will see the result of the formula change, because now it will either find those numbers and will subsequently return the corresponding values (or an error if the value does not exist).
Regards
Ken.................
----------------------------------------------------------------------------
![[peace] [peace] [peace]](/data/assets/smilies/peace.gif)
It's easier to beg forgiveness than ask permission
----------------------------------------------------------------------------