Quick Answer

MATCH Function

MATCH finds the position of a value in a range.

✓ Excel✓ Google SheetsExcel All versions

Syntax

MATCH
(lookup_value, lookup_array, [match_type])

Parameters

ParameterDescriptionRequired
lookup_valueThe value to search for.Required
lookup_arrayThe range to search within.Required
match_typeOptional. 1=approximate (sorted), 0=exact, -1=approximate (descending).Optional

Basic Example

Find position of a value

=MATCH("Apple", A1:A5, 0)
Result3

Returns the position (3) where "Apple" is found in the range.

Advanced Examples

Example 1: MATCH with INDEX for two-way lookup

Advanced lookup

Combine MATCH with INDEX for flexible lookups

=INDEX(B:B, MATCH(A1, C:C, 0))
Result: Lookup result
MATCH finds the row position, INDEX retrieves the value.

How MATCH Works

MATCH scans the lookup_array for the lookup_value and returns its relative position (1-based).

1
Define value
Determine the value to search for.
2
Select range
Choose the range to search within.
3
Choose match type
Use 0 for exact match (most common).
4
Enter formula
Type =MATCH(value, range, match_type).

Important Notes & Limitations

  • MATCH returns position, not the actual value.

  • For returning the value, combine with INDEX.

Common Errors & Fixes

#N/AValue not found in range

Fix: Check that the value exists in the lookup range.

Download Practice File

Practice MATCH with Real Data

Download a sample CSV file with pre-populated data and practice exercises for the MATCH function. Works in both Excel and Google Sheets.

Works in Google SheetsCompatible with ExcelIncludes exercises

File format: CSV (comma-separated values) - opens in Excel, Google Sheets, and all spreadsheet apps

Related Tutorials

Frequently Asked Questions

Is MATCH case-sensitive?
No, MATCH is not case-sensitive by default.
Can MATCH search horizontally?
Yes, MATCH works with horizontal ranges as well.