# Excel Row Function

This post will guide you how to use **Excel ROW function** with syntax and examples in Microsoft excel.

## Description

The Excel ROW function returns the row number of a cell reference.

The ROW function is a build-in function in Microsoft Excel and it is categorized as a Lookup and Reference Function.

The ROW function is available in Excel 2016, Excel 2013, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000, Excel 2011 for Mac.

## Syntax

The syntax of the ROW function is as below:

= ROW ([reference])

**Where** the ROW function arguments is:

**Reference** – This is an Optional argument. the cell or range of cells reference that you want to get the row number.

Note: If the reference is omitted, the ROW function will return the row number of the current cell.

## Excel Row Function Examples

The below examples will show you how to use Excel ROW Lookup and Reference Function to return the row number of a cell reference.

**#1** To get the row number of “**B5**” cell in B1 Cell, just using the following excel formula: **=ROW(B5)**

**#2** To get the row number of the current cell, just using excel formula: **=ROW()**

**#3** get the first row number of range in excel

You can get the first row number in a range with an excel formula based on the ROW function as follows:

=ROW(Range) =MIN(ROW(Range))

The ROW function will only display the first row number.

## More Excel ROW Formula Examples

- Get the Position of the nth Occurrence of a Character in a Cell

If you want to get the position of the nth occurrence of a character using a excel formula, you can use the FIND function in combination with the SUBSTITUTE function. - Get the position of Last Occurrence of a character or string in a cell

If you want to get the position of the last occurrence of a character in a cell, then you can use a combination of the LOOKUP function, the MID function, the ROW function, the INDIRECT function and the LEN function to create an excel formula.… - Find the Relative Position in a Range or Table

If you want to know the relative row position for all rows in an Excel Range (B3:D6), you can use a excel Array formula as follows:=ROW(B3:D6)- ROW(B3) + 1. You can also use another excel array formula to get the same result as follows:=ROW(B3:D6)-ROW(INDEX(B3:D6,1,1))+1… - Get the First Row Number in a Range

If the ROW function use a Range as its argument, it only returns the first row number.You can also use the ROW function within the MIN function to get the first row number in a range. You can also use the INDEX function to get the reference of the first row in a range, then combined to the ROW function to get the first row number of a range.… - Get the Last Row Number in a Range

If you want to get the last row number in a range, you need to know the first row number and the total rows number of a range, then perform the addition operation, then subtract 1, the last result is the last row number for that range.… - Get the position of Last Occurrence of a value in a column

If you want to find the position number of the last occurrence of a specific value in a column (a single range), you can use an array formula with a combination of the MAX function, IF function, ROW function and INDEX Function. - Get the position of nth occurrence of a value in column

If you want to locate the second, third or nth occurrence of a specified value, you can use a combination of the INDEX function, the IF function, ROW function and SMALL function to create a new excel array formula. - Split Text String to an Array

If you want to convert a text string into an array that split each character in text as an element, you can use an excel formula to achieve this result. the below will guide you how to use a combination of the MID function, the ROW function, the INDIRECT function and the LEN function to split a string… - Three Ways to Get the Last Row Number in a Range

If you want to get the last row number in a range, you need to know the first row number and the total rows number of a range, then perform the addition operation, then subtract 1, the last result is the last row number for that range… - Three Ways to get the First Row Number in a Range

you can use ROW function to get the first row number in a range directly. You can also use the ROW function within the MIN function to get the first row number in a range.You can also use the INDEX function to get the reference of the first row in a range, then combined to the ROW function to get the first row number of a range…

### Related Functions

- Excel MIN function

The Excel MIN function returns the smallest numeric value from the numbers that you provided. Or returns the smallest value in the array.The MIN function is a build-in function in Microsoft Excel and it is categorized as a Statistical Function.The syntax of the MIN function is as below:= MIN(num1,[num2,…numn])….

## Comments

So empty here ... leave a comment!