Function reference · Lookup

VLOOKUP

Finds a value in the first column of a range and returns a value from another column in the same row.

VLOOKUP(search_key, range, index, [is_sorted])

VLOOKUP searches down the leftmost column of a range until it finds your search key, then jumps across to the column you asked for and returns whatever is there.

It is the function most people learn first, and the one that causes the most confusion, because two of its rules are unforgiving: the search column must be the first column of the range, and the index is counted from that column, not from column A of the sheet.

Arguments

ArgumentRequiredWhat it does
search_key Yes The value to look for, in the first column of the range.
range Yes The block of cells to search. Its first column is the one searched.
index Yes Which column of the range to return, counting the first column as 1.
is_sorted Optional FALSE for an exact match — almost always what you want. TRUE assumes the first column is sorted and returns an approximate match.

Worked example

RegionRepSales
WestAna1200
EastBen900
WestCara1500
NorthDan600
EastEve1100
=VLOOKUP("Cara", B1:C6, 2, FALSE)

Returns 1500.

The range starts at column B, so B is column 1 and C is column 2. Searching for Cara in column B returns her sales figure from column C.

Gotchas

Related functions