Applies To: Excel 2016, Excel 2013, Excel 2010, Excel 2007, Excel 2016 for Mac, More...

The Excel LOOKUP function use to returns the corresponding value from a range (one-row or one-column) or from an array range.

With Array form the LOOKUP function searches for the value in the first row or column of the array and returns the corresponding value in the last row or column of the array. Use this form of LOOKUP when the values that you want to match are in the first row or column of the array.

We strongly recommend using VLOOKUP or HLOOKUP instead of the array form. The array form is provided for compatibility with other spreadsheet programs, but it's functionality is limited.

LOOKUP( lookup_value, array )
The LOOKUP function Array form syntax has the following arguments:
  • lookup_value Required. A value that LOOKUP searches for in an array. The lookup_value argument can be a number, text, a logical value, or a name or reference that refers to a value. The value to search for in the array. The values must be in ascending order.
    • If LOOKUP can't find the value of lookup_value, it uses the largest value in the array that is less than or equal to lookup_value.
    • If the value of lookup_value is smaller than the smallest value in the first row or column (depending on the array dimensions), LOOKUP returns the #N/A error value.
  • array Required. A range of cells that contains text, numbers, or logical values that you want to compare with lookup_value. An array of values that contains both the values to search for and return.
Remarks:
  • If the LOOKUP can not find an exact match, it chooses the largest value in the array that is less than or equal to the value.
  • If the value is smaller than all of the values in the array, then the LOOKUP function will return #N/A.
  • If the values in the array are not sorted in ascending order, the LOOKUP function will return the incorrect value.
LOOKUP Function