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
| argument | required |
|---|---|
| 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.
| A | B | C | |
|---|---|---|---|
| 1 | 10 | alpha | |
| 2 | 20 | beta | |
| 3 | 30 | gamma | |
| 4 | 40 | delta | |
| 5 | 50 | epsilon |
fx
=LOOKUP(30, A1:A5, C1:C5) gamma errors
error values observed from the engine — each with a call that produces it.
| error | produced 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