FormulaCamp
Completed
← All functions
Lookup & reference

VLOOKUP

Looks in the first column and returns a value from a column to the right.

Syntax

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

Example: =VLOOKUP(A2,PriceList!$A$2:$C$100,3,0)

Available in: All versions

VLOOKUP looks for a value in the first column of a table and returns a value from another column in the same row. Use =VLOOKUP(lookup_value, table, column_number, FALSE) for an exact match, for example to pull a price from a product list by SKU.

When to use it

Arguments explained

Worked examples

Exact match: price by SKU

ABCDEF
1SKUProductPriceLook upPrice
2A101Desk lamp24.99A103
3A102Monitor stand39
4A103USB hub18.5
5A104Webcam54.9

Formula: F2: =VLOOKUP(E2,A2:C5,3,FALSE)

Result: 18.5

Finds A103 in column A and returns the 3rd column of A2:C5. FALSE demands an exact match.

Approximate match: commission tier

ABCDE
1Sales fromRateSalesRate
200.0227500
3100000.04
4500000.06

Formula: E2: =VLOOKUP(D2,A2:B4,2,TRUE)

Result: 0.04

27,500 is not in the list, so TRUE returns the last row whose start is not above it (10,000). The first column must be sorted ascending.

Wildcard: partial product name

ABC
1SKUProductPrice
2A101Desk lamp24.99
3A102Monitor stand39
4A103USB hub18.5

Formula: E2: =VLOOKUP("Mon*",B2:C4,2,FALSE)

Result: 39

The asterisk matches any text, so "Mon*" finds "Monitor stand". The table starts in column B because the key must be the first column.

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in F2: =VLOOKUP(103,A2:D6,3,FALSE)

Example spreadsheet for VLOOKUP
ABCDEF
1IDItemPriceStockResult
2101Pen2.512025
3102Notebook480
4103Lamp2515
5104Mug7.540
6105Backpack3912
Result in F2: 25
Practice this in a lesson: The VLOOKUP Function

Common errors and how to fix them

Related functions

Frequently asked questions

Can VLOOKUP return a value from a column to the left?
No. It always searches the first column of the table and returns from columns to the right. Use INDEX with MATCH, or XLOOKUP, to look left.
What does the last argument of VLOOKUP do?
FALSE (or 0) means exact match. TRUE (or omitted) means approximate match on sorted data, which suits tiers and bands but not IDs.
Why does VLOOKUP return #N/A when the value is visible?
Usually a hidden difference: a trailing space, a number stored as text, or a different spelling. Compare with LEN on both cells, then clean the data.
Is VLOOKUP case sensitive?
No. "abc" and "ABC" are treated as the same key.

Practice

More in Lookup & reference