Back to functions
Lookup & Reference2026-06-138 related articles

ROW Function in Excel

Return the row number of a reference or of the cell that contains the formula.

Syntax

ROW([reference])

Arguments

reference

Optional

The cell or range whose row number you want Excel to return.

What it returns

Returns the row number of the reference, or the current formula cell if no reference is supplied.

What ROW does

ROW returns a row number. It often appears inside larger formulas where you need Excel to count positions dynamically instead of hard-coding them.

Practical examples

Return the row number of a specific cell

=ROW(D10)

This returns 10.

Use ROW inside a dynamic formula

=ROW(A2)-ROW($A$2)+1

This pattern turns worksheet row numbers into a running sequence that starts at 1.

Common mistakes and notes

Omitting the reference changes the behavior

If you use ROW() with no argument, Excel returns the row number of the cell that contains the formula.

Ranges return the first row unless spilled as an array

If you pass a multi-row range in a normal formula, Excel returns the top row number rather than every row number.

ROW is often a helper, not the whole solution

By itself ROW is simple. Its real value usually comes when it is nested inside formulas that need position logic.

Related functions

Related articles

Deep dives, troubleshooting guides, and practical examples that use ROW.

Formulas
2019-10-31

How to Create a Database in Excel

Excel database files are useful for creating simple tables or spreadsheets based on numbers and formulas. Learn here on how to create a database in excel....

8 min read
Read Article
BeginnerFormatting
2019-07-04

How to Add a Row in Excel: Step by Step Process

Microsoft Excel is a great tool to use for work, school and even for personal data purposes. In case you're wondering, here's how to add a row in excel....

8 min read
Read Article
BeginnerFormatting
2019-06-19

How to Hide Columns in Excel

As great as columns are in Excel you don’t always need to see every single one. Let’s take a look at how to hide columns in Excel, and unhide them too....

#rows-columns#formatting
6 min read
Read Article
Beginner
2019-06-13

How to Randomize a List in Excel: Our Complete Guide

How to randomize a list in excel? How would you do it? In this article, we listed our complete guide to help you on this kind of formula....

8 min read
Read Article
BeginnerFeaturesFormatting
2018-06-14

How to Freeze A Row in Excel: A Practical Guide

Learn to how to freeze a row in excel (or even more than 2 rows) using this practical how-to guide. Excel has an available feature allowing users the ability to freeze a row....

#rows-columns#freezing-rows-vs-splitting-panes
8 min read
Read Article
AdvancedFormattingIntermediate
2018-06-13

How to Alphabetize in Excel: Fast & Simple

Using Excel we can properly organize data for our businesses or personal finances. Learn how to alphabetize in excel so it is easy to read and refer back to whenever necessary....

#alphabetize
12 min read
Read Article
Formulas
2018-06-01

Excel SUM Formula: What Is It And When Do I Use It?

Perhaps one of Excel's best-known functions is the SUM formula. Learn more about a subset of data by totaling rows, columns and more with excel sum formula....

#math
6 min read
Read Article
BeginnerFormulas
2018-04-17

How to Use the AVERAGE Function in Excel

To figure out the average of a group of numbers, makes it easier for you to analyze important data. Learn how to use the average function in Excel right here....

#math#functions
6 min read
Read Article

Official documentation