Excel functions / Lookup & reference

VLOOKUP

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

Syntax=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])

Arguments

lookup_valueWhat you are searching for, such as a product name or ID.
table_arrayThe table to search. VLOOKUP always looks in its first column.
col_index_numWhich column of the table to return, counting the first column as 1.
range_lookupFALSE for an exact match. Leave it out and Excel uses an approximate match, which is rarely what you want.

How it works

VLOOKUP is the classic way to pull information from a list: look up an employee ID and return their salary, or look up a product and return its price.

The V stands for vertical, because it searches down a column. It only looks to the right of the column it searches, so the lookup column must be the first column of the range you give it.

Always finish with FALSE unless you specifically want an approximate match. Without it, VLOOKUP can quietly return the wrong row.

Example

F2=VLOOKUP("Desk",B2:D5,2,FALSE)
ABCDEF
1CodeProductPriceStock
2A10Lamp$25.0012140
3B20Desk$140.003
4C30Chair$85.007
5D40Shelf$60.000
6

Result: 140. Searches column B for Desk and returns the 2nd column of B2:D5, the price.

Tips

Practise VLOOKUP

Try it yourself in a real spreadsheet, with instant feedback on every answer.

Start the exercise

Related