MATCH(search_key, range, [search_type])One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
search_key:
The value that you want to search for within the specified range. This can be a number, text, or a cell reference.
range:
The range of cells that you want to search through for the specified search_key.
search_type:
An optional parameter that determines how the search is conducted. It can be set to 1 for an approximate match (the range must be sorted in ascending order), 0 for an exact match, or -1 for an approximate match (the range must be sorted in descending order). If omitted, the default is 1.
The MATCH function in Google Sheets is a useful tool that helps you find the position of a specific value within a range or array. It returns the relative position of that value, which can be particularly helpful when you need to locate data or use it in conjunction with other functions like INDEX or VLOOKUP.
In simpler terms, MATCH allows you to determine where a particular item is located in a list or table.
Imagine you are working with a list of employee names and their corresponding IDs stored in a Google Sheets document:
| EmployeeID | EmployeeName |
|---|---|
| 1 | John Doe |
| 2 | Jane Smith |
| 3 | Emily Davis |
You want to find the position of "Jane Smith" in the Employee Table.
To achieve this, you would use the MATCH function as follows:
=MATCH("Jane Smith", A:A, 0)In this formula:
"Jane Smith" is the value you are searching for.A:A is the range where the function will look for the EmployeeName.0 specifies that you want an exact match.When you apply the MATCH formula, the output would be:
2This indicates that "Jane Smith" is located in the second position of the Employee Table.
MATCH is beneficial because it provides a straightforward way to locate the position of a value in a dataset. It can be used in combination with other functions to retrieve related data or perform calculations based on the position of the item found.
MATCH is an essential function for anyone working with data in Google Sheets, providing a powerful way to enhance data retrieval and analysis capabilities.
Happy spreadsheeting!
You have a table with product IDs in Column A and their prices in Column B. Use the MATCH formula to find the position of a specific product ID, enabling you to quickly reference its price or other related data in adjacent columns.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.