Lookup & Reference

VLOOKUP Formula

Looks up a value in the first column of a table and returns a value in the same row from a column you specify. One of the most widely used spreadsheet formulas.

Syntax

VLOOKUP(lookup_value, table_array, col_index, [range_lookup])
ParameterDescription
lookup_value The value to search for in the first column of the table. Can be a cell reference, text, or number.
table_array The range of cells that contains the data. The first column is searched for lookup_value.
col_index The column number in table_array from which to return a value. 1 = first column, 2 = second, etc.
[range_lookup] Optional. FALSE for exact match (recommended), TRUE or omitted for approximate match. Almost always use FALSE.
Try VLOOKUP in Viztab — free, no signup

Examples

Suppose you have a table of employees with their department and salary:

ABC
1NameDepartmentSalary
2AliceEngineering95,000
3BobMarketing72,000
4CarolEngineering105,000
5DaveSales68,000

Find Bob's salary

Formula
=VLOOKUP("Bob", A1:C5, 3, FALSE)
Returns: 72000 — finds "Bob" in column A, returns the value from column 3 (Salary)

Find Carol's department

Formula
=VLOOKUP("Carol", A1:C5, 2, FALSE)
Returns: Engineering — finds "Carol" in column A, returns column 2 (Department)

Dynamic lookup from a cell

Formula
=VLOOKUP(E1, A1:C5, 3, FALSE)
Looks up whatever name is in cell E1 and returns their salary. Change E1 to look up different employees.

Common Errors

#N/A Error

The lookup value wasn't found. Check for extra spaces, typos, or mismatched data types (text vs. number). Use =IFNA(VLOOKUP(...), "Not found") to handle this gracefully.

#REF! Error

The col_index is larger than the number of columns in table_array. If your table has 3 columns, col_index must be 1, 2, or 3.

Tips

Always use FALSE

Set range_lookup to FALSE for exact matching. The default (TRUE) does approximate matching, which requires sorted data and is rarely what you want.

VLOOKUP only searches right

VLOOKUP always searches the first column and returns a column to the right. If you need to search right and return left, use INDEX + MATCH instead.

Case-insensitive

VLOOKUP is not case-sensitive. "bob", "Bob", and "BOB" all match the same value.

Try VLOOKUP in Viztab

Import your data and use VLOOKUP with 370+ other formulas. No signup required.

Open Viztab

Related Formulas