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

LOOKUP function

Finds a value in a sorted row or column and returns the value at the same position in another row or column.

Syntax

=LOOKUP(lookup_value, lookup_vector, [result_vector])

Arguments

ArgumentRequiredDescription
lookup_valueRequiredThe value to look for
lookup_vectorRequiredA sorted row or column (or an array whose first row or column is searched)
result_vectorOptionalWhere to take the result from (optional)

How to use LOOKUP

LOOKUP takes 2 required arguments and 1 optional argument. Type =LOOKUP( 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.

=LOOKUP(4.19, {4.14,4.19,5.17}, {"red","orange","yellow"})Result "orange"
=LOOKUP(5, {1,2,3;"a","b","c"})Result "c"
=LOOKUP(0, {1,2,3}, {"a","b","c"})Result #N/A

Every formula, right in your browser

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