In this article:

How to Number Rows in Google Sheets (Easiest Way 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 and trying our software for dental reminders.

Automate repetitive tasks with Lido

Save hours on repetitive and tedious work. Lido is a new spreadsheet that connects your spreadsheets, forms, PDFs, and email inbox.

Trigger
Action
Select trigger
When a cell value in Google Sheets changes
Check Google Sheets for today's date
When a new row is added to Google Sheets
On new Google Form submission
Send me a daily reminder
On new Typeform submission
When a cell value in database changes
Check database for today's date
When a new row is added in database
When a new HubSpot customer is created
Select action
ADDCALENDAREVENT
Creates a one- or multiple-day calendar event with optional attendees
ADDHUBSPOT
Adds an object to Hubspot
ADDSLACKCHANNEL
Create a Slack channel, and optionally add a topic or members
CALLURL
Makes any HTTP request
CREATEGOOGLEDOC
Replaces [@column_name] values in a Google Doc with the corresponding table row's values
CREATEPDF
Replaces [@column_name] values in a Google Doc with the corresponding table row's values, then export it as a PDF
FETCH
Makes any HTTP request and returns the response
INSERTROWS
Inserts given array below defined values in given worksheet
SENDGMAIL
Sends an email using your Google account
SENDOUTLOOK
Sends an email using your Microsoft Outlook account
SENDSLACK
Sends a Slack message
SENDSMS
Sends an SMS message using your Twilio account
UPDATECELL
Updates cells with given values
UPDATEHUBSPOT
Updates a property of a Hubspot object
Trigger is required
Action is required
Get started