ShareYourGroupShareYourGroupExcel Formulas

Lookup functions

VLOOKUP function in Excel

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

VLOOKUP is the function that most people learn first when one table has a code and another table has the details. The V stands for vertical: it searches down a column. Give it a price list and a product code and it brings back the price. Give it a staff list and an employee number and it brings back the name.

Syntax

=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
ArgumentWhat it is
lookup_valueThe value to look for. It is searched in the first column of the table.
table_arrayThe table to search. Its first column must hold the values you are looking up.
col_index_numWhich column of the table to return, counted from the left of the table. The first column is 1.
range_lookupFALSE for an exact match, which is what you want nearly always. TRUE, or left out, for an approximate match on a sorted table.

Examples

Each result below is what Excel itself showed for the formula on the sample sheet.

Sample sheet: A small price list with item codes. The table is sorted by code.
ABCDE
1CodeItemCategoryPriceStock
2A101Basmati Rice 5 kgGrocery65040
3A102Toor Dal 1 kgGrocery16075
4B201NotebookStationery60300
5B202Ball PenStationery100
6C301LED BulbElectronics110200
7C302Power BankElectronics129918
8D401Steel BottleHome45055
Sample sheet: A marks table and a grade table. The grade table lists the lowest mark of each grade, in rising order.
ABCDE
1NameMarksFromGrade
2Asha910E
3Ravi4533D
4Meena7950C
5Kabir2865B
6Tara6580A

How it works

VLOOKUP does two things. First it goes down the first column of the table until it finds the lookup value. Then it moves across that row to the column whose number you gave, and returns what it finds there.

The column number counts from the left edge of the table you selected, not from column A of the sheet. If the table is C5:F20, then column C is 1 and column F is 4.

Always type FALSE for an exact match

The fourth argument is the one that causes trouble. If you leave it out, Excel assumes TRUE, an approximate match, which only works on a table sorted in rising order and otherwise returns wrong answers without any error. For codes, names and ID numbers, always end the formula with FALSE. You may also type 0, which means the same.

Approximate match has one good use: bands. Tax slabs, grade boundaries, commission rates and courier charges by weight are all tables that say "from this value upwards". List the lowest value of each band in the first column, in rising order, and use TRUE. The last two examples above grade marks this way.

Lock the table with dollar signs

When you copy a VLOOKUP down a column, the table reference moves down with it unless you fix it. Write $A$2:$E$8 and it stays put. Pressing F4 while the cursor is on the reference adds the dollar signs for you. See the page on absolute and relative references.

What VLOOKUP cannot do

Why you get #N/A when the value is there

Capital and small letters do not matter to VLOOKUP: "b201" finds "B201".

In Google Sheets

VLOOKUP works the same way in Google Sheets, with the same four arguments.

Related functions

Every result on this page was calculated in Microsoft Excel (version 16.0, build 20326) on 12 November 2026, not typed by hand.

This is an independent help site. It is not connected with or approved by Microsoft. Excel and Microsoft 365 are trademarks of Microsoft Corporation, named here only to say which program a formula is for. The people and figures in the sample sheets are made up.