VLOOKUP
looks up value in first column of range and returns value from specified column · from excel · excel: verified match · sheets: verified match
signature
VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
returns: any
| argument | required |
|---|---|
| lookup_value | required |
| table_array | required |
| col_index_num | required |
| range_lookup | optional · defaults to 1 |
examples
formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.
| R | S | |
|---|---|---|
| 2 | north | 100 |
| 3 | south | 200 |
| 4 | north | 300 |
fx
=VLOOKUP("south", R2:S4, 2, FALSE) 200 | A | B | |
|---|---|---|
| 1 | 10 | 2 |
| 2 | 20 | 4 |
| 3 | 30 | 6 |
| 4 | 40 | 8 |
| 5 | 50 | 10 |
fx
=VLOOKUP(25, A1:B5, 2, TRUE) 4 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