Google Sheets LOOKUP Function: Syntax, Examples & Tips

The LOOKUP function searches for a value in a range and returns a corresponding value from another range, useful for finding data.
Google Sheets
LOOKUP(search_key, search_range|search_result_array, [result_range])

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

On this page
  1. Parameters
  2. What is a LOOKUP?
  3. A Practical Example
  4. LOOKUP Formula
  5. Result of the Formula
  6. Why Use LOOKUP?
  7. Key Takeaways:
  8. Example use case

Parameters

search_key:
The value that you want to search for within the specified search_range or search_result_array.

search_range|search_result_array:
The range of cells that you want to search through for the search_key. This can also be an array of values from which to retrieve the result.

result_range:
(Optional) The range of cells from which to return the corresponding value if the search_key is found in the search_range. If omitted, the function returns the value from the search_range or search_result_array.

What is a LOOKUP?

The LOOKUP function in Google Sheets is a fundamental tool used to search for a value in a one-dimensional range or array and return a corresponding value from another one-dimensional range or array. It is a simple yet effective way to retrieve data based on a specific criterion. While it may not be as versatile as newer functions like XLOOKUP, it remains a valuable function for straightforward lookup tasks.

In simpler terms, LOOKUP allows you to find specific data in a row or column and retrieve related information from that row or column.

A Practical Example

Imagine you are managing a list of students and their corresponding grades stored in a Google Sheets document:

Students Table:

StudentIDStudentNameGrade
1AliceA
2BobB
3CharlieC

You want to find the grade of each student based on their StudentID.

LOOKUP Formula

To achieve this, you would use the LOOKUP function as follows:

Google Sheets
=LOOKUP(B2, Students!A:A, Students!C:C)

In this formula:

  • B2 is the cell containing the StudentID you want to look up.
  • Students!A:A is the range where the function will look for the StudentID in the Students Table.
  • Students!C:C is the range from which the function will return the corresponding Grade.

Result of the Formula

When you apply the LOOKUP formula to the Students Table, the output would look like this:

StudentIDStudentNameGrade
1AliceA
2BobB
3CharlieC

If you were to add a row for a student that hasn't been included, such as StudentID 4, the result would still show the corresponding grade if it exists:

StudentIDStudentNameGrade
1AliceA
2BobB
3CharlieC
4David#N/A

In this case, if you input StudentID 4 in the lookup, the LOOKUP would return #N/A since there is no corresponding grade for David.

Why Use LOOKUP?

LOOKUP is beneficial because it provides a straightforward way to retrieve data without the complexity of nested functions. It is particularly useful for simple datasets where you need to find a value based on a single criterion. However, it is important to note that LOOKUP assumes the data is sorted in ascending order, which may limit its use in some scenarios.

Key Takeaways:

  • LOOKUP: A basic function that searches for a value and returns a corresponding value from another range.
  • Simplicity: Ideal for straightforward lookup tasks with simple datasets.
  • Limitations: Assumes sorted data and may not handle errors as gracefully as newer functions.
  • Common Use Cases: Suitable for small datasets, quick lookups, and scenarios where data is organized in a single dimension.

LOOKUP is a fundamental function for anyone working with data in Google Sheets, providing a simple way to enhance data retrieval tasks.

Happy spreadsheeting!

Example use case

You have a sales report where Column A lists product IDs and Column B contains their prices. By using the LOOKUP formula, you can input a product ID to quickly find its price, streamlining the process of pricing inquiries and inventory management.

Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.