LOOKUP

Looks for a key in a single row or column sorted in ascending order and returns a corresponding value from another single row or column.

Parameter List

Syntax
LOOKUP(search_keysearch_range|search_result_array
[result_range]
)
search_key

The value to search for in a row, e.g. "Super", 123, A2, or "Benf*".

search_range|search_result_array

The two-dimensional range or JSON data to consider for the search. The first column must include the search_key. For example: A1:C5.

[optional] result_range

The range from which to return a result.

Examples

LOOKUP(50, A1:A1000, B1:B1000) returns it will look for the closest number to 50 in range A1:A1000 and return the corresponding value of in the same rows in B1:B1000