LOOKUP

LOOKUP

Synopsis

LOOKUP(value,vector1[,vector2])

Description

LOOKUP function finds the row index of value in vector1 and returns the contents of vector2 at that row index. Alternatively a single array can be used for vector1. If the area is longer than it is wide then the sense of the search is rotated.

  • If LOOKUP can't find value it uses the largest value less than value.
  • The data must be sorted.
  • If value is smaller than the first value it returns #N/A.

Examples

See also

VLOOKUP, HLOOKUP.