LOOKUP

looks up value in one-row or one-column range · from excel · excel: verified match · sheets: not yet compared

signature

LOOKUP(lookup_value, lookup_vector, [result_vector])

returns: any

argumentrequired
lookup_value required
lookup_vector required
result_vector optional

examples

formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.

ABC
1 10alpha
2 20beta
3 30gamma
4 40delta
5 50epsilon
fx =LOOKUP(30, A1:A5, C1:C5) gamma

errors

error values observed from the engine — each with a call that produces it.

errorproduced by
#N/A =LOOKUP(5,{10,20,30})

related

  • ADDRESS returns a cell address as text from row and column numbers
  • AREAS returns the number of areas in a reference
  • HLOOKUP searches first row and returns matching value
  • HYPERLINK the text a link displays — clickability is the renderer's
  • INDEX returns value at row and column in range
  • INDIRECT returns reference specified by text string