How to Number Rows in Google Sheets (Easiest Way 2023)
In this article we will show how to automatically number rows in Google Sheets in just a few clicks using the ROW function. Simply follow the steps below:
How to Automatically Number Rows in Google Sheets
For the purpose of this demonstration an example data sheet was created. Click here to access it and follow along at home.
We will use the Row function to apply numerical values to a dataset. In the below example we will show you how to use this helpful function.
1. Select an empty cell in your spreadsheet
Select a cell next to your dataset where you want the numbering sequence to begin.
In our example we have highlighted cell A3.

2. Enter the formula =ROW() [Operator] [Value]
In the empty cell input the formula in the format of =ROW() [Operator] [Value]
Formula Breakdown:
=ROW(): This function returns the row number of a specific cell
[Operator]: The operator takes the form of either a plus or minus symbol (+, -) followed by a number that will increase or decrease the start value of the row count.
Numerical Value: This value will define what the start number of the row count will be.
In our example we will begin our row count in the cell reference A3. We have input a numerical value of -2 to begin the count at 1 on the third row. Our example formula is:
=ROW()-2

3. Press Enter to populate the results
With the formula inputted, simply press the Enter key.
The formula will run and the results will populate. In our example we selected cell A3 as the start cell for the row count, the returned result is the number 1.

4. Click and hold the blue square in the corner of the cell and drag it down to fill the rest of the data range.
To implement the row count on the rest of a dataset, click the small blue square icon in the corner of the cell containing the formula.
Drag the selection to match your dataset. For the example below dragged from cells A3 through to A9.

The ascending numerical values have now been populated next to the rest of the dataset.

Adding an additional text value to Row Numbers
1. Enter the formula =“Text Value”&ROW()[Operator] [Value]
To add additional information to a row formula such as a name, add the prefix before the number value contained in quotation marks.
Input the formula in the format of =“Text Value”ROW()[Operator] [Value]
Formula Breakdown:
=Text Value: This is the text information that will be present before the numerical row count, in our example this will be ‘Row’
&ROW(): This function returns the row number of a specific cell
[Operator]: The operator takes the form of a plus or minus symbol (+, -) followed by a number that will increase or decrease the start value of the row count.
[Value]: This value will define what the start number of the row count will be.
In our example below we have added the word ‘Row’ to generate before the numerical value:
="Row "&ROW()-2
2. Press Enter to populate the results
Press the Enter key. The results will populate.
In our example below, the cell is now designated as ‘Row 1’.

3. Click and hold the square icon at the corner of the cell, drag and highlight the rest of the data range.
To implement the formula on the rest of the dataset, click the small blue square icon in the corner of the cell containing the formula. Hold and drag this selection over the rest of your data set.

The text value will remain the same but the numerical value will increase, numbering the rows accordingly.
