How to Find Text or Numbers in an Excel Row or Column Using MATCH
Question details
The user needs to locate a specific text or number value within an Excel row or column and return its relative position for use in other formulas.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Searching for a specific value's position within a dataset to use in nested formulas like INDEX.
- Observed behavior
- The user wants to retrieve the exact row or column index number where the target text or number is located.
Ensure your target search range is a single row or a single column, as the MATCH function only works with one-dimensional arrays.
Use the MATCH Function for Exact Matches
The MATCH function is the standard method to find the relative position of an item in an array that matches a specified value.
The MATCH function searches for a specified item in a range of cells and then returns the relative position of that item. The syntax is MATCH(lookup_value, lookup_array, [match_type]). Using 0 for match_type ensures an exact match.
Click on the cell where you want the position number to appear.
Type `=MATCH("YourText", A:A, 0)` to search for specific text in column A. Replace "YourText" with the actual text you are looking for.
To find a number or use a dynamic reference, type `=MATCH(B1, A:A, 0)` where B1 contains your search value.
Press the Enter key to execute the formula. The cell will now display the relative row or column number of the first match.

Easily Find and Extract Data with WPS Spreadsheet
WPS Spreadsheet fully supports advanced lookup functions like MATCH, INDEX, and VLOOKUP. It provides a familiar interface to help you locate and manage your data efficiently without any learning curve.
- 1. Open your file in WPS: Launch WPS Office and open your spreadsheet document.
- 2. Use the Formula tab: Navigate to the Formulas tab to access the Insert Function feature.
- 3. Search for MATCH: Type MATCH in the search box to find the function and view its syntax guide.
- 4. Apply the formula: Input your lookup value and array, then press Enter to get your results instantly.

Frequently Asked Questions
Why does my MATCH function return an #N/A error?
An #N/A error occurs when the MATCH function cannot find the lookup value in the specified array. Ensure there are no leading or trailing spaces in your data, and verify that the match_type is set to 0 for an exact match.
Can I use MATCH to search across multiple columns and rows at once?
No, the MATCH function is designed to search within a one-dimensional array (a single row or a single column). If you select a multi-row and multi-column range, it will return a #VALUE! error.
Is MATCH case-sensitive when searching for text?
By default, the MATCH function is not case-sensitive. If you need a case-sensitive search, you must combine MATCH with the EXACT function in an array formula.
How do I use wildcards with the MATCH function?
You can use wildcards like the asterisk (*) for multiple characters or the question mark (?) for a single character in your lookup_value. For example, `=MATCH("App*", A:A, 0)` will find the first cell starting with 'App'.




