ROW Function

An excel function that displays the row number from the cell you chose to reference

Author: Marcu Dumitrescu
Marcu Dumitrescu
Marcu Dumitrescu
Reviewed By: Parul Gupta
Parul Gupta
Parul Gupta
Working as a Chief Editor, customer support, and content moderator at Wall Street Oasis.
Last Updated:March 21, 2024

What is the ROW Function in Excel?

The ROW Function is an Excel feature that returns the row number from the referenced cell you chose to select. This function helps determine the reference number of the specified cell(s) you chose to highlight. 

The ROW function is labeled as a Lookup and Reference tool in excel that returns the number as a reference. However, it only shows the cell’s number and not the value of the referenced cell, meaning that it only returns the row number and not whatever’s in those cells.

The syntax for the row function is:

= ROW([reference])

where,

  • Reference: (required) the number of the referenced row.

In this article, you will learn how to use the ROW function in excel, use the formula above by providing some examples, and also talk about the ROWS function and how they are similar and different.

Key Takeaways

  • The ROW function returns the row number of a referenced cell, aiding in determining cell reference numbers.
  • It's categorized as a Lookup and Reference tool in Excel, providing row numbers as references without displaying cell values.
  • The syntax is = ROW([reference]), where [reference] is the row number of the referenced cell.
  • The ROW function returns row numbers, not values. It's used to calculate references for single and multiple rows.
  •  While ROW returns row numbers, ROWS returns the count of referenced rows as an array.

ROW Function Examples

In this section, you will learn how to use this feature. But first, you’ll want to find the cell you wish to reference using the formula above, which should return the row number.

    As we can see from the screenshot above, the formula gave us the numbers of the cells we’ve chosen to reference here.

  • The first example used the function to calculate the reference in cell B5, giving 5 as the answer.
  • Next, we used the same method to calculate B5, and we used it for B2, where it says “EXCEL Row Function” to find the answer, and it got me 2 as the answer in cell C6.
  • Then, you wanted to find the answer for cell O24 using the same calculation. O24 has a value of 12 in the cell, but the function returns an answer of 24 because it only gives you the row number and not the values of specific cells.
  • Finally, you wanted to find out what would happen if you chose multiple rows instead of one. Using rows from K15 to N17 as an example, it returned three numbers: 15, 16, and 17. When you select multiple rows, it gives you back more numbers.

ROW Function vs. ROWS Function

Alongside ROW, we also have the ROWS function. While they may seem the same on the surface, they’re pretty different in that ROW returns the row number, while ROWS returns an array of rows.

The syntax for the ROWS Function is:

= ROWS(array)

where,

  • Array: (required) is the number of rows being referenced.

We are going to use this formula in greater context so you can gain a better understanding of how it works. Below is a screenshot of the ROWS examples, alongside the previous examples from the last demonstration.

  • Suppose you wanted to find how many arrays were in B13. Cell C13 gave you an answer of 1, as there is only one array, 13.
  • Next, you want to find the array of rows from H10 to I12. Using the same method that we used in the first example, the answer is 3 in C14 because there are only three arrays between those rows, those being 10, 11, and 12.
  • Then, you want to find the number of arrays between J6 and M6. It gives you an answer of 1 in C15 because the 6th row is the only referenced array.
  • Finally, you want to find how many arrays are within one column. Again, using column G as an example, with cells G2 to G5 being referenced, it gives you an answer of 4 because rows 2, 3, 4, and 5 are the only referenced sections.

The following are the differences between ROW Function and ROWS Function:

ROW Function Vs. ROWS Function

ROW FUNCTION  ROWS FUNCTION
  • The ROW function in Excel is useful for returning the row number of a specified cell or range of cells. 
  • The ROWS function in Excel is a worksheet function that is used to count the number of rows in a given range. It returns the number of rows in a range as an integer.
  • ROW is a function that returns a specific row number.
  • ROWS is a function that returns the number of rows in a range of cells.
  • The ROW function in Excel is used to return the row number of a specific cell or range.
  • The ROWS function in Excel is used to count the number of rows in a range of cells. 
  • It takes an optional reference argument that specifies the cell or range for which you want to return the row number.
  • It takes a single argument, which is the range for which you want to count the number of rows. 
  • For example, the formula "=ROW(A43)" returns the row number of cell A43 which is 43.
  • For example, the formula "=ROWS(A10:A43)" returns the number of rows in the range A10:A43 which is 33.

ROW Function FAQs

Free Resources

To continue learning and advancing your career, check out these additional helpful WSO resources: