=LOOKUP(lookup_value, lookup_vector, [result_vector])
=LOOKUP(F4,B5:B9)
The LOOKUP function can be used to find a match in a range of data. This example will return the value of the match found in column B.
=LOOKUP(F4,B5:B9,C5:C9)
The LOOKUP function can also be used to return the corresponding tier from a column. For example, this formula will return the corresponding tier from column C.
=LOOKUP(2,1/(B:B<>""),B:B)
The LOOKUP function can also be used to return the last non-empty cell in a column by using a full column reference. For example, the formula above will return the last non-empty cell in a column.
=LOOKUP(2,1/(item=F5),price)
The LOOKUP function can also be used to return the latest price in data that is ordered by ascending date. This example, will return the latest price in data that is ordered by ascending date.
The LOOKUP function is a lookup function that searches for a value in a range by using the same position in another range.