Function Problems

Excel MATCH Function: Syntax and Examples for Exact Matches

Nimra MalikNimra Malik Oct 26, 2026 868 views

Question details

The user wants to understand the syntax and see practical examples of using the MATCH function in Excel to find the relative position of a specific value in a dataset.

How to Use the Excel MATCH Function: Syntax and Examples
Product
Microsoft Excel
Device & OS
not provided
Scenario
Searching for a specific data entry within a row or column and retrieving its numerical position to be used in further data analysis.
Observed behavior
Needs the correct syntax and practical examples for finding exact matches and executing common lookup scenarios using the MATCH function.
Before you start

Ensure the data range you are searching does not contain hidden leading or trailing spaces, as these can cause the MATCH function to return a #N/A error when searching for an exact match.

Solution 1Recommended

Using the MATCH Function for Exact Data Lookups

The most common way to use MATCH is finding the exact position of a specific string or number within a one-dimensional range.

The MATCH function searches for a specified item in a range of cells and returns the relative position of that item. The standard syntax is =MATCH(lookup_value, lookup_array, [match_type]). Setting the match_type parameter to 0 forces Excel to look for an exact match.

1
Select the destination cell

Click on the cell where you want the position result to be displayed.

2
Enter the MATCH formula

Type the formula =MATCH("Apple", A2:A10, 0) into the formula bar. Replace "Apple" with your target lookup value and A2:A10 with your actual data range.

3
Execute the function

Press Enter to execute the formula. The cell will now display the numerical position of the item within the selected array.

Using the MATCH Function for Exact Data Lookups
Combining with INDEX: The MATCH function alone only returns a position. It is most frequently paired with the INDEX function (INDEX/MATCH) to look up and retrieve the actual value from another column based on that position.
Use WPS Spreadsheet for Advanced Formulas

Master Lookup Functions with WPS Spreadsheet

WPS Spreadsheet provides full support for standard functions like MATCH, INDEX, and VLOOKUP. You can easily analyze data and build complex lookup formulas in a lightweight, user-friendly interface.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open the document containing your dataset.
  2. 2. Start typing the formula: Select an empty cell and type =MATCH( to trigger the formula syntax tooltip.
  3. 3. Select formula arguments: Click on the cell containing your lookup value, type a comma, and highlight your lookup array.
  4. 4. Complete the exact match formula: Type ,0) at the end of your formula to define an exact match type, and press Enter to see the position result.
100% compatible with Microsoft Excel formulas and file formats (.xlsx).Built-in formula suggestions and syntax hints for MATCH and INDEX.Lightweight software with fast calculation performance for large datasets.Free and intuitive alternative to Microsoft Office.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my MATCH formula return an #N/A error?

The #N/A error occurs when the lookup value is not found in the specified array. This is often caused by a typo, hidden extra spaces in the dataset, or using an exact match type (0) when the specific value doesn't exist in the range.

Is the MATCH function case-sensitive?

No, the standard MATCH function is case-insensitive. It treats "Apple" and "apple" identically when searching for text strings. If you need a case-sensitive search, you have to combine MATCH with the EXACT function.

Can I search across both rows and columns simultaneously with MATCH?

No, the MATCH function requires a one-dimensional array, meaning you can only search within a single row or a single column at a time. To perform a two-dimensional lookup, you must use MATCH twice nested inside an INDEX function.