Table of Contents
To return the row number of a matching cell in Excel, one can use the MATCH function. This function allows users to search for a specific value in a range of cells and returns the relative position of that value within the range. By using the MATCH function, users can easily locate and retrieve the row number of a matching cell, making it a useful tool for organizing and analyzing data in Excel. This function is particularly helpful for quickly identifying the location of specific data points within a large dataset.
Excel: Return Row Number of Matching Cell
You can use the following formula to return the row number of a matching cell in Excel:
=MATCH(F1, A1:A11, 0)
This particular formula will return the row number in the range A1:A11 for the cell whose value matches the value in cell F1.
Note: The last argument of 0 tells Excel to look for an exact match of the lookup value.
The following example shows how to use this formula in practice.
Example: Return Row Number of Matching Cell in Excel
Suppose we have the following dataset in Excel that contains information about various basketball players:

Suppose we would like to return the row number of the cell that is equal to “Mavs” in the team column.
We can type the following formula into cell F2 to do so:
=MATCH(F1, A1:A11, 0)
The following screenshot shows how to use this formula in practice:

The formula returns a value of 2, which tells us that the second row in the range A1:A11 contains “Mavs” as the team name.
If we change the team name in cell F1 to a different name, the MATCH function will update to return the new row number.
For example, suppose we change the lookup team name to Lakers:

Note: You can find the complete documentation for the MATCH function in Excel .
The following tutorials explain how to perform other common tasks in Excel:
Cite this article
stats writer (2024). How can I return the row number of a matching cell in Excel?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-return-the-row-number-of-a-matching-cell-in-excel/
stats writer. "How can I return the row number of a matching cell in Excel?." PSYCHOLOGICAL SCALES, 22 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-return-the-row-number-of-a-matching-cell-in-excel/.
stats writer. "How can I return the row number of a matching cell in Excel?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-return-the-row-number-of-a-matching-cell-in-excel/.
stats writer (2024) 'How can I return the row number of a matching cell in Excel?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-return-the-row-number-of-a-matching-cell-in-excel/.
[1] stats writer, "How can I return the row number of a matching cell in Excel?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How can I return the row number of a matching cell in Excel?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
