Google Sheets MATCH function

Returns the position of a value within a row or column. In Spanish Sheets it is called COINCIDIR.

Syntax

English Sheets

=MATCH(search_key, range, [search_type])

Spanish Sheets (Mexico locale)

=COINCIDIR(clave_búsqueda, intervalo, [tipo_búsqueda])

Spanish Sheets (Spain, Latin America)

=COINCIDIR(clave_búsqueda; intervalo; [tipo_búsqueda])

ArgumentWhat it is
search_keyWhat you look for.
rangeThe row or column to search.
search_typeoptional0 for an exact match.

Example

MATCH(value, range, 0) tells you the value’s position; INDEX(range, position) returns what is at that position. Together they look up in any direction and work the same in Sheets and every Excel version.

=INDEX(A2:A8,MATCH(F2,C2:C8,0))

Common mistake

Without the final 0 it matches approximately and needs sorted data. You almost always want the 0.

About Ads

This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.

Advertising
Loading ad...

Ads help us keep WebHerramientas free for everyone

Practice MATCH

Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons

INDEX + MATCH

MATCH(value, range, 0) tells you the value’s position; INDEX(range, position) returns what is at that position. Together they look up in any direction and work the same in Sheets and every Excel version.

Example=INDEX(A2:A8,MATCH(F2,C2:C8,0))INDICE = INDEXCOINCIDIR = MATCH

In F3, find the name of the employee with the ID in F2. The ID is to the right of the name, so VLOOKUP will not work.

F3
ABCDEFG
1NameRoleID
2Marisol PeñaManagerE-101IDE-105
3Fernando RuizAnalystE-102Name
4Gabriela SotoDesignerE-103
5Hugo LaraAccountantE-104
6Daniela VegaDeveloperE-105
7Óscar DíazSales repE-106
8Natalia CruzAssistantE-107
9

Tip: while typing, click a cell or drag across several to insert their reference.

Frequently asked questions

What is MATCH called in Spanish?
In Spanish Google Sheets it is COINCIDIR. The formula =INDEX(A2:A8,MATCH(F2,C2:C8,0)) is written =INDICE(A2:A8;COINCIDIR(F2;C2:C8;0)) (or with commas under a Mexico locale).
Why does MATCH use semicolons in some spreadsheets?
It depends on each spreadsheet's locale, under File > Settings. Where the comma is the decimal mark (Spain, much of South America), arguments are separated by semicolons. Mexico and United States locales use commas.
What is the most common MATCH mistake?
Without the final 0 it matches approximately and needs sorted data. You almost always want the 0.