ReferenceFunctionsLookup Functions
VLOOKUP
VLOOKUP: Looks up a value in the first column of a table and returns a value from another column.
Summary
VLOOKUP searches vertically and returns the matching row's value from col_index_num.
Remarks
col_index_numis 1-based and must be within the table width.range_lookupdefaults toFALSEin this engine (exact match by default).- When
range_lookup=TRUE, approximate match logic is used against the first column. - If the lookup value is not found, returns
#N/A. - If
col_index_numis invalid, returns#REF!(or#VALUE!if non-numeric). - A matched empty target cell is materialized as numeric
0.
Examples
Exact match in a key/value table
Grid
| Cell | Value | |
|---|---|---|
Formula
=
Result
Not evaluated yet.
Expected
18
Approximate tier lookup
Grid
| Cell | Value | |
|---|---|---|
Formula
=
Result
Not evaluated yet.
Expected
Silver
Related functions
FAQ
What is the default behavior when range_lookup is omitted?
This engine defaults range_lookup to FALSE, so VLOOKUP performs exact matching unless TRUE is explicitly provided.
What happens if col_index_num points outside the table?
A numeric out-of-range column index returns #REF!, while a non-numeric col_index_num returns #VALUE!.
Runtime metadata
Category
Lookup
Signature
VLOOKUP(arg1: Any, arg2: Any (Range), arg3: Number, arg4?: Logical)Arity
min 3, max 4
Arguments
arg1Any · Scalar
arg2Any · Range
arg3Number · Scalar · coercion NumberStrict
arg4optionaldefaultLogical · Scalar · coercion Logical
Caps
PURELOOKUP
Source