Google Sheets function

MATCH function in Google Sheets

MATCH in Google Sheets returns the relative position of a search key within a one-dimensional range. Use exact match for unsorted labels or identifiers, or an approximate search type for sorted numeric ranges. MATCH often supplies a row or column position to INDEX.

Source: Google Docs Editors HelpLast verified Nov 5, 2026

Syntax

=MATCH(search_key, range, [search_type])

Arguments

ArgumentRequiredWhat it means
search_keyYesThe value to find.
rangeYesThe single row or column to search.
search_typeNoThe match method: 1 for ascending, 0 for exact, or -1 for descending.

Examples

Find a product position

ABC
1ProductSearch
2NotebookPen
3Pen
4Folder
=MATCH(C2,A2:A4,0)

Result: 2

Pen is the second value within A2:A4, so MATCH returns 2.

Common mistakes

Using a two-dimensional table as the search range.

Give MATCH a single row or a single column.

Omitting search_type for an unsorted exact lookup.

Use 0 when the search key must match exactly.