Vlookup
Vlookup is a very powerful and useful lookup function. It looks up the value in the first column of the range or table and returns the corresponding value in a specified table or range column.
Syntax
VLOOKUP (lookup_value, table_array, col_index_num, range_lookup)
Arguments
Lookup_value – This is the value you are trying to find in a range or table.
Table_array – This the the range where you are looking for a value to match another value.
Note that the value you are looking up should be located in the left-most column of the range.
Col_index_num – This is the column number within the range from where you want to return the matching value.
Range_lookup – This is optional. If TRUE or 1 or omitted, an approximate match is returned by the formula. If FALSE or 0, Vlookup will search for an exact match. If it doesn’t find an exact match, this formula would return error as #N/A.
Though this is optional, it shouldn’t be. This is probably the biggest reason for VLOOKUP getting a bad name. I have many people tell me they don’t trust VLOOKUP because it gives the wrong results. Once an auditor for a big Accounting firm told me he refuses to allow VLOOKUP to be used in any spreadsheets of his clients that he is auditing. Lame! There should be no reason for this distrust. Just make sure you understand this last clause and don’t allow for a fuzzy match (,1 or leaving the last clause off). In 99% of applications I HIGHLY recommend using the ,0 at the end for an exact match in your vlookup formula.