Excel function

LOOKUPfunction

Finds the largest value less than or equal to lookup_value in a sorted range and returns the value in the same position of another range.

All versions
=LOOKUP(75, A2:A6, B2:B6)
Range to drag
12345
A
B
C
D
1
2
3
4
5
6

Click a cell to change lookup_value. Drag the corner dots to change lookup_vector, result_vector. Change lookup_value to 59, 60 and 100. Enter -5 and it is below 0, so you get #N/A. Try breaking it on purpose to see the errors.

Result

C

lookup_value

The value to find. With no exact match, it takes the largest value smaller than this.

lookup_vector
A2:A6Drag a corner dot up/down to resize, sideways to change the column

The column (or row) to search. It must be sorted in ascending order.

result_vector
B2:B6

The column to return results from. It must be the same size as lookup_vector.

What is the LOOKUP function?

=LOOKUP(lookup_value, lookup_vector, [result_vector])

LOOKUP searches a range sorted in ascending order for lookup_value — or, if it is not there, the largest value smaller than it — and returns the value in the same position of result_vector (vector form).

It is handy for band tables such as scores and grades. Watch on the sheet above how it goes down until it meets a larger value and then takes the value just above.

Arguments

lookup_value
The value to find.
lookup_vector
One column or row sorted in ascending order.
result_vector
The range to return results from. Omitted means lookup_vector.

LOOKUP examples

  1. Example 1. Get a grade

    =LOOKUP(75, A2:A6, B2:B6)

    The largest value up to 75 is 70, so grade "C".

  2. Example 2. A boundary value

    =LOOKUP(90, A2:A6, B2:B6)

    Equal to 90, so "A".

  3. Example 3. Below the range

    =LOOKUP(-5, A2:A6, B2:B6)

    Below 0, so #N/A.

Common mistakes

FAQ

How is it different from VLOOKUP?
It works like VLOOKUP(..., TRUE), but you choose lookup_vector and result_vector separately, so it can return values to the left too.
Is there an array form?
There is a LOOKUP(lookup_value, array) form, but Microsoft recommends VLOOKUP or XLOOKUP.