Back to Class Index
VLOOKUP(X, R, N)Searches the first column (known as the index column) in range R for the numeric or string value which "matches" X, and returns the value N columns to the right in the row where the match is found. The index column is searched from top to bottom. If the column contains numeric values, they must be in ascending order, and cannot contain an empty cell. If X is a string value, an exact match must be found or an error is returned. If X is a numeric value, the matching row is determined by the following rules:
Parameters X A numeric or string value R A range N A numeric value Examples A B Lodging $85.00 Meals $30.00 Airfare $698.00 Entertainment $25.00 VLOOKUP("Meals", A1..B4, 1) = 30 VLOOKUP("Airfar", A1..B4, 1)) = Error - VLOOKUP, lookup failed to produce a match VLOOKUP("Airfare", A1..B4, 2)) = Error - VLOOKUP, column out of range |