1. Home
  2. Functions
  3. Lookup and reference
  4. VLOOKUP

VLOOKUP function

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

Syntax

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

Arguments

ArgumentRequiredDescription
lookup_valueRequiredThe value to look for
table_arrayRequiredThe table; the first column is searched
col_index_numRequiredWhich column to return, from 1
range_lookupOptionalTRUE (default) for the closest match in a sorted column, FALSE for an exact match

How to use VLOOKUP

VLOOKUP takes 3 required arguments and 1 optional argument. Type =VLOOKUP( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=VLOOKUP("b", {"a",1;"b",2;"c",3}, 2, FALSE)Result 2
=VLOOKUP(2.5, {1,"one";2,"two";3,"three"}, 2)Result "two"
=VLOOKUP("z", {"a",1;"b",2}, 2, FALSE)Result #N/A

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.