Excel MATCH Function: Syntax and Examples for Exact Matches
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.

- 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.
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.
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.
Click on the cell where you want the position result to be displayed.
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.
Press Enter to execute the formula. The cell will now display the numerical position of the item within the selected array.

Finding Approximate Matches with MATCH
Use approximate matching when dealing with sorted numerical data, such as tax brackets, pricing tiers, or grading scales.
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. Open your workbook: Launch WPS Spreadsheet and open the document containing your dataset.
- 2. Start typing the formula: Select an empty cell and type =MATCH( to trigger the formula syntax tooltip.
- 3. Select formula arguments: Click on the cell containing your lookup value, type a comma, and highlight your lookup array.
- 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.

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.




