ExcelFormulas logoExcelFormulas.
Ask AI
Lookup & ReferenceVerified QA Tested

VLOOKUP.

Searches for a value in the first column of a table and returns a value in the same row from a specified column.

Category: Lookup & Reference
ExcelExcel 365Excel 2021Excel 2019Google Sheets

How it works.

VLOOKUP searches vertically down the leftmost column of a table or cell range to find a specified value. Once found, it retrieves another value from that same row in a column index number you specify. It is a legacy formula, but still widely used for backward compatibility.

💡 In simple terms.

Searches down the first column of a table to find a matching word, then reads across that row to get a value from a column you choose.

Everyday Analogy

"Think of VLOOKUP like sliding your finger down a price catalog. You lookup the item name in the left column, then slide your finger to the right to see the price."

Formula syntax.

Standard Excel Notation
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
Tip:Arguments wrapped in square brackets [like_this] are optional; all other arguments are required.

Formula arguments.

Every parameter accepted by the VLOOKUP function is detailed below.

lookup_valueRequired

The value to search for in the first column of the table.

Example value: D2
table_arrayRequired

The range containing the search column and the return column.

Example value: A2:B6
col_index_numRequired

The column number in the table range to return a value from (first column is 1).

Example value: 2
range_lookupOptional

TRUE = Approximate match, FALSE = Exact match. In almost all cases, set to FALSE.

Default: FALSE

Simple example.

Step-by-Step Scenario

Product Pricing Directory

Retrieve a product's price using its exact name.

Item NamePriceStockQuery ItemItem Cost
Laptop99915Tablet—
Monitor2998——
Tablet44924——
Applied Formula
=VLOOKUP(D2, A2:B6, 2, FALSE)
Expected Result:Engineering

Evaluates VLOOKUP over the sample table cells, placing the verified output in cell E2.

Formula generator.

Full Generator Wizard

Customize the argument fields below to generate a tailored VLOOKUP formula ready to paste directly into your worksheet.

Generated FormulaReady to copy

Expected result behavior.

Returns "Engineering" based on sample evaluation criteria and active cell references.

Sample Output:Engineering
Output Type:Text String

Best Practices

  • Always set range_lookup to FALSE or 0 to avoid incorrect approximate match returns.
  • Lock your table_array range with dollar signs (e.g. $A$2:$C$6) when copying formulas down a column.

Common Mistakes

  • VLOOKUP can only search from left to right. The lookup value must always be in the first column of the table_array.
  • Inserting or deleting columns in the table range shifts the column indices, which breaks VLOOKUP or returns incorrect data.
Compatibility Database

Platform & version compatibility.

Verified platform compatibility matrix based on actual spreadsheet calculation engine specifications.

Excel✓
Supported
Excel 365✓
Supported
Excel 2021✓
Supported
Excel 2019✓
Supported
Google Sheets✓
Supported
Microsoft Excel History & Version Availability

Core standard function supported across all modern and legacy Microsoft Excel versions (365, 2021, 2019, 2016, 2013, 2010), as well as Excel for the Web and Mac.

Google Sheets Compatibility Notes

100% compatible with Google Sheets. Uses identical argument order, data types, and standard calculation logic.

Frequently asked questions.

Technical Q&A
Why is VLOOKUP returning a #N/A error?↓

The #N/A error means the lookup_value was not found in the first column of table_array. Common causes include trailing or leading spaces in cell text, numbers stored as text strings, or omitted range_lookup causing false misses.

Can VLOOKUP look to the left in Excel?↓

No. Traditional VLOOKUP can only search the leftmost column of the table_array and return values to the right. To look up data to the left, use XLOOKUP or an INDEX and MATCH formula combination.

Why should I always specify FALSE as the fourth argument in VLOOKUP?↓

Omitting the fourth argument defaults VLOOKUP to TRUE (approximate match), which assumes your table is sorted alphabetically or numerically. Setting range_lookup to FALSE or 0 guarantees an exact match.