vlookup
Vertical lookup in a table.
Syntax
Section titled “Syntax”v = vlookup(lookup_value, table_array, col_index_num, range_lookup)Description
Section titled “Description”Searches the first column of table_array for lookup_value and returns the value from column col_index_num of the same row. With range_lookup = true (default), uses approximate match (table must be sorted ascending); with false, exact match.
For more flexible lookups including searching from the right or returning a default for not-found, use xlookup.
Example
Section titled “Example”vlookup('apple', T, 2, false)