How to Use the LOOKUP Function in Excel

The LOOKUP function is incredibly useful for finding specific values within a cell range in Excel or Google Sheets. It is primarily used to locate a value in a single row or column and then return a corresponding value from the same position in a second row or column.

Basic Syntax

The basic syntax for the LOOKUP function is as follows:

LOOKUP(lookup_value, lookup_vector, result_vector)
  • lookup_value: The value you are searching for within the lookup_vector.
  • lookup_vector: The range of cells containing the target value.
  • result_vector: The range of cells from which the corresponding result is pulled.

Example 1: Using LOOKUP for Exact Match

Consider a scenario where you have a list of student names in column A and their respective scores in column B. You need to find the score for a specific student named ‘John’.

Student Score
Anna 85
John 92
Mary 88

To find John’s score, you can use the following formula in Excel or Google Sheets:

=LOOKUP("John", A2:A4, B2:B4)

This formula searches for “John” within the range A2:A4 and returns the score from the corresponding position in the range B2:B4, which is 92 in this case.

Example 2: Using LOOKUP for Approximate Match

The LOOKUP function can also handle approximate matches if the lookup_vector is sorted in ascending order. For example:

Grade Letter
60 D
70 C
80 B
90 A

To find the letter grade for a score of 75, you would use the formula:

=LOOKUP(75, A2:A5, B2:B5)

This returns ‘C’ because 75 is the highest score in the range A2:A5 that does not exceed 75.

By mastering the LOOKUP function in Excel or Google Sheets, you can efficiently search for and retrieve specific values from your spreadsheets.

More information: https://support.microsoft.com/en-us/office/lookup-function-446d94af-663b-451d-8251-369d5e3864cb

Other functions
Returns a reference as text to a single cell in a worksheet
Returns the number of areas in a reference
Chooses a value from a list of values
Returns the column number of a reference
Returns the number of columns in a reference
Filters a range of data based on criteria you define
Returns the formula at the given reference as text
Returns data stored in a PivotTable report
Looks in the top row of an array and returns the value of the indicated cell
Creates a shortcut or jump that opens a document stored on a network server, an intranet, or the Internet
Uses an index to choose a value from a reference or array
Returns a reference indicated by a text value
Looks up values in a reference or array
Returns a reference offset from a given reference
Returns the row number of a reference
Returns the number of rows in a reference
Retrieves real-time data from a program that supports COM automation
Sorts the contents of a range or array
Sorts the contents of a range or array based on the values in a corresponding range or array
Returns the transpose of an array
Returns a list of unique values in a list or range
Looks in the first column of an array and moves across the row to return the value of a cell
Searches a range or an array, and returns an item corresponding to the first match it finds If a match doesn't exist, then XLOOKUP can return the closest (approximate) match
Returns the relative position of an item in an array or range of cells