মূল বিষয়বস্তুতে যান
Lookup & ReferenceIntermediate LevelIntermediate Excel (Lookups & Business Analytics)

How to Use MATCH in Excel

Returns the position of a value inside a range — the engine behind INDEX MATCH and most advanced lookups.

Direct Answer (Quick Summary)

What is MATCH in Microsoft Excel?

MATCH does not return the value itself; it returns the position number where that value sits. Feed that number into INDEX and you have a lookup that works in any direction and survives column insertions. MATCH is also used on its own to find a row number for dynamic ranges and chart labels.

Pro Tip: Always use match_type 0 for exact matches. Leaving it blank defaults to 1, which assumes sorted data and silently returns the wrong row on unsorted tables.

Formula Syntax

=MATCH(lookup_value, lookup_array, match_type)

Arguments Breakdown

ArgumentRequirementPurpose & Details
lookup_valueRequiredThe value whose position you want to find.
lookup_arrayRequiredA single row or column to search. A two-dimensional range returns #N/A.
match_typeOptional0 for exact match, 1 for the largest value less than or equal to the lookup (sorted ascending), -1 for the smallest value greater than or equal (sorted descending).

When to Use MATCH (Real-World Business Scenarios)

  • 1

    Building INDEX MATCH when VLOOKUP's fixed column number keeps breaking.

  • 2

    Finding which row a value is on, so you can feed that position into INDEX, OFFSET or CHOOSE.

  • 3

    Locating the last occurrence of a value by searching from the bottom with match_type 0 and a reversed array.

Step-by-Step Practical Business Example

Suppose you have the following dataset in Excel cells A1:D4:

MonthSales
Jan45000
Feb52000
Mar38000
Applied Formula:Result: 3
=MATCH("Mar",A2:A4,0)

How it works: Searches the month column for 'Mar' with exact match and returns 3, because March is the third item in the range.

Common Errors & How to Fix Them

#N/A

Why it happens: The value is not in the range, or match_type was omitted so Excel performed an approximate search on unsorted data.

Fix: Add the third argument as 0: =MATCH("Mar",A2:A4,0). Confirm there are no trailing spaces in the source column.

Wrong position returned

Why it happens: match_type 1 or -1 was used on data that is not sorted in the required direction.

Fix: Use 0 for exact matching, or sort the lookup column ascending before relying on approximate match.

Interactive Formula Lab

Try MATCH Live in Your Browser

No need to launch desktop Excel. Practice formulas with real-time feedback in our HyperFormula sandbox.

Open Practice Lab

Frequently Asked Questions (MATCH)

What does the MATCH formula do in Excel?

MATCH does not return the value itself; it returns the position number where that value sits. Feed that number into INDEX and you have a lookup that works in any direction and survives column insertions. MATCH is also used on its own to find a row number for dynamic ranges and chart labels.

What is the syntax for MATCH?
=MATCH(lookup_value, lookup_array, match_type)
What are common mistakes when using MATCH?

#N/A: The value is not in the range, or match_type was omitted so Excel performed an approximate search on unsorted data. (Add the third argument as 0: =MATCH("Mar",A2:A4,0). Confirm there are no trailing spaces in the source column.) Wrong position returned: match_type 1 or -1 was used on data that is not sorted in the required direction. (Use 0 for exact matching, or sort the lookup column ascending before relying on approximate match.)

Keep building your formula toolkit with these lookup & reference functions.

Browse all 41 Excel formulas
Ready to Master Microsoft Excel?

Master MATCH in Intermediate Excel

Learn MATCH along with our formula library, practice files, and verifiable certificates in our complete curriculum.

Strictly necessary