In this article:

How to Number Rows in Google Sheets (Easiest Way 2024)

December 5, 2024

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.

How to number rows in Google Sheets: Select empty cell

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

Numbering rows in Google Sheets: Formula entered in cell

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. 

How to automatically number rows in Google Sheets: Enter

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. 

Number rows in Google Sheets: Apply to rest of cells

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

How to automatically number rows in Google Sheets: Results

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’.

How to number rows in Google Sheets: Results generated

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.

Numbering rows in Google Sheets: Highlighting cells

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

Number rows in Google Sheets: Results

We hope this article has helped you and given you a better understanding of how to number rows in Google Sheets.

You might also like our articles on how to move a row in Google Sheets and how to create a pivot table. On a side note, we also recommend reading our guide on how to get our free Google Sheets email list template to optimize your workflow better.

Get Google Sheets productivity and automation tips delivered straight to your inbox
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
We'll email you 1-3 times a week — and never share your information.

Work less, automate more!

Use Lido to connect your spreadsheets to email, Slack, calendars, and more to automate data transfers and eliminate manual copying and pasting. View all use cases ->