Searches for a given value in a sorted row/column and returns a corresponding value from the given row/column. If more than one exact match appears, LOOKUP takes the value in a random order. If no exact match appears, LOOKUP takes the next smallest value compared to the given value.
Syntax
LOOKUP(lookup_value; search_table; result_table)
lookup_value: The value to look for in the given row/column. E.g. 2508
search_table: Range with values to evaluate. It can contain single or multiple rows/columns. Must be sorted in a scending order. E.g. A1:A7
Remarks
You can use named ranges for search_table and result_table.
If you don't remember the complete text you have to search for, use .* , .? and / instead.
.* - Can be used to replace any number of characters. E.g.
Zyl.*
finds
Zylker
.? - Can be used to replace a single character. E.g.
Karthi.?
finds
Karthik
and
Karthic
/ - Can be used to include *, ? and / in the search term. E.g. Zylker/* finds Zylker* and Karthi.?/? finds Karthik? and Karthic?
LOOKUP is case-insensitive, e.g. "APPLES" and "Apples" are treated similarly
|
Formula |
Result |
|
=LOOKUP(2508; A1:A7 ; C1:C7 ) |
Ming Yin |
|
=LOOKUP(1452; A1:C7 ) |
Aaron Williams |
Possible Errors
|
Errors |
Meaning |
|
#N/A! |
|
|
#NAME! |
|
|
#VALUE! |
|
|
#REF! |
|
Similar Functions