Google Sheets MATCH Function: Syntax, Examples & Tips

The MATCH keyword is used to find the position of a specified value within a range, returning its relative index.
Google Sheets
MATCH(search_key, range, [search_type])

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 MATCH Function?
  3. A Practical Example
  4. MATCH Formula
  5. Result of the Formula
  6. Why Use MATCH?
  7. Key Takeaways:
  8. Example use case

Parameters

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.

What is a MATCH Function?

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.

A Practical Example

Imagine you are working with a list of employee names and their corresponding IDs stored in a Google Sheets document:

Employee Table:

EmployeeIDEmployeeName
1John Doe
2Jane Smith
3Emily Davis

You want to find the position of "Jane Smith" in the Employee Table.

MATCH Formula

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

Google Sheets
=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.

Result of the Formula

When you apply the MATCH formula, the output would be:

Google Sheets
2

This indicates that "Jane Smith" is located in the second position of the Employee Table.

Why Use MATCH?

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.

Key Takeaways:

  • MATCH: A Google Sheets function that finds the position of a specific value within a range.
  • Exact Match: Allows you to specify whether you want an exact match or an approximate match.
  • Common Use Cases: Ideal for data analysis, lookups, and when working with large datasets where position identification is necessary.

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!

Example use case

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.

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.