What Is Auto Numbering In Google Sheets?
Auto numbering in Google Sheets is a method that helps one to automatically update sequential numerical values in cells to arrange rows of data. The fill handle and inbuilt ROW and OFFSET functions are some of the options to auto number a range in Google Sheets.
Users can make use of the auto numbering methods in Google Sheets for numbering specific cells in massive and complex datasets to make them appear structured.
For example, the source dataset lists the top-ranking smartphones in column A. Next, cell B2 shows the rank of the first smartphone in the list.

We must update the ranks of the remaining smartphones in cells B3:B11.
Then, aligning with the definition of auto numbering in Google Sheets explained earlier; we can automatically number the target cells using a simple ‘+’ operator-based formula.

We first choose cell B3. Next, we enter the formula that adds the cell B2 value and the value of 1. After that, we select cell B3 and double-click the fill handle, which works like Excel fill handle, to update the remaining target cells B4:B11.
The above example shows one of the auto numbering in Google Sheets options, similar to numbering in Google Sheets options. The ensuing sections will show the other methods in detail.
Table of Contents
Key Takeaways
- Auto numbering in Google Sheets is a technique that enables us to enter sequential numbers into the required cells automatically.
- We can utilize the fill handle option or arithmetic operator-based, ROW or OFFSET functions-based custom formulas to auto-number cells in Google Sheets.
- The dynamically auto numbering cells in Google Sheets is feasible using the ARRAYFORMULA, COUNTA, and SEQUENCE inbuilt functions.
- Auto numbering cells in Google Sheets is an effective way to organize and handle massive financial datasets, making them more presentable and readable.
How To Auto Number In Google Sheets?
The steps for using auto numbering in Google Sheets are the following:
- Choose the top cell in the target range, enter the first number of the required sequence, and press Enter.
- Choose the second cell in the target range. Next, enter a simple arithmetic operator-basedformula that manipulates the first cell data with a number to achieve the second number in the required sequence, and press Enter.
- Select the second cell in the target range. Next, double-click the fill handle icon at the bottom right corner of the chosen cell to update the second cell formula in the remaining target cells to auto number them.
Top 3 Ways To Get Auto Numbering In Google Sheets
We shall see the top three ways of using auto numbering in Google Sheets.
#1 – Auto Row Numbering Using The Fill Handle
The following dataset lists item codes in column B.

We must update their order numbers in column A with the sequence starting with the value 1. Next, we must update the quantity of each item as 500 in column C.
While we have multiple auto numbering in Google Sheets options, we shall use the most straightforward fill handle-based technique.
Step 1: Select cell A2, enter the value 1, and press Enter.

Next, choose cell A3, enter the value 2, and press Enter.

Step 2: Select cells A2:A3 to view the fill handle option at the bottom right corner of the chosen range.

Next, double-click the fill handle. Otherwise, place the cursor on the fill handle icon. Next, while holding the cursor, drag the cursor to the last cell in the target range.

We shall see the required cells auto-numbered, following the sequence updated in cells A2:A3.
Step 3: Select cell C2, enter the value of 500, and press Enter.

Next, choose cell C2 and double-click the fill handle icon.

We see the value 500 updated in all the target cells. Please note that the output in column C might give us the appearance of auto numbering in Google Sheets not working. However, since we require the same number in all the target cells, there is no specific sequence to follow. So, double-clicking the fill handle of one chosen cell will automatically update the chosen cell value in all the required cells.
#2 – Use ROW() Function
The source dataset shows a set of employees in column A.

The requirement is to update their workstation numbers in column B, with the required sequence starting with 1.
Then, following the meaning of auto numbering in Google Sheets explained previously, we can automatically number the required cells using a ROW function-based formula.
Step 1: Choose cell B2, enter the following customized ROW formula, and press Enter.
=ROW()-1

Step 2: Select cell B2 and double-click the fill handle icon to update the formula in the remaining target cells.

The ROW(), which works like the Excel ROW function, in each target cell formula returns the current row number. Next, the formula deducts the value of 1 from the ROW() output.
#3 – Using OFFSET() Function
The source dataset lists the top US companies and their market caps.

The task is to update the serial numbers for the given data in column A. Then, here is how to use the OFFSET()-based formula to auto-number the required range.
Step 1: Select cell A2, enter the value of 1, and press Enter.

Step 2: Choose cell A3, enter the following formula, and press Enter.
=OFFSET(A3,-1,0)+1

Next, choose cell A3 and double-click the fill handle to implement the formula in the required cells.

The OFFSET(), which works like the Excel OFFSET function, returns the cell value, which is in one row above the current cell and the same column as the current cell. Next, the formula adds the value 1 to the OFFSET() output.
Please note that the ROW() and OFFSET()-based formulas are not fixed. So, use the appropriate formula to suit the requirements and avoid the scenario of auto numbering in Google Sheets not working.
Important Things To Note
- Ensure the simple formula, the ROW function, or OFFSET function-based formulas used for auto numbering in Google Sheetsare correct. Otherwise, the numbers updated in the required cells may be incorrect.
- Ensure that the numeric value we enter in the first cell of the target range we wish to auto-number is correct. Otherwise, updating the number sequence in the remaining cells using the various auto-numbering methods in Google Sheets will lead to incorrect values.
- Assuming there is no data on either side of the target range, we aim to auto-number. Then, we must place the cursor on the fill handle icon of the cell or range whose data we want to populate in the remaining target cells. Next, while holding the cursor, we must drag it to the last cell of the target range to auto-number the required cells. On the flip side, consider the target range we aim to auto number has data on either side. Then, double-clicking the fill handle icon of the cell or range whose data we want to update in the remaining target cells will work perfectly.
Frequently Asked Questions
We can auto-number rows in Google Sheets using the COUNTA function, as explained below with an illustration.
The source dataset shows a list of stationery items and their entry dates. However, the data is not available in a few rows.
The requirement is to fill the entry numbers in column A for the visible stationery items, with the sequence starting with 1.
Then, we can use the COUNTA()-based formula to auto-number the required cells.
Step 1: Select cell A2, enter the following COUNTA()-based formula and press Enter.
=IF(ISBLANK(B2),””,COUNTA($B$2:B2))
Step 2: Choose cell A2 and double-click the fill handle option to apply the formula in the remaining target cells.
Let us check the cell A11 formula to understand the logic.
The ISBLANK() is the IF() condition. It accepts the cell B11 address to check if the specified cell is blank. In this case, cell B11 contains a value. So, the IF() condition is false. Thus, the IF() returns the false value, which is the COUNTA() output.
The COUNTA() accepts the range B2:B11. The function returns the count of the non-blank cells in the range, which is 7.
The lower limit of the range supplied as input to the COUNTA() remains fixed, and the upper limit varies. So, since we copy the cell A2 formula in all the target cells, we use absolute reference when referencing the first cell of the range B2:B11 to keep it fixed.
On the other hand, when a cell in column B is blank, the ISBLANK() in the corresponding target cell formula will be true, implying the IF() condition is true. Thus, the IF() returns a blank, leading to the target cell appearing blank.
Thus, the formula helps auto-number column A cells in the rows where column B contains data in the required sequence.
We can add text value to the auto numbering in Google Sheets using the following steps:
1. Select the target cell, enter the following formula, and press Enter.
=”Text Within Double Quotes”&(ROW() [Operator] [Numeric Value])
Where,
• “Text Within Double Quotes”: The additional text value we aim to add to the auto-numbering. It should be within double quotations.
ROW(): The function to return the current row number.
Operator: The arithmetic operator to manipulate the ROW() output based on the requirement.
Numeric Value: The number we must use to manipulate the ROW() output to auto-number the target cell.
2. Choose the target cell again and double-click the fill handle icon to implement the formula in the remaining required cells.
We can dynamically do auto serial numbering in Google Sheets using the ARRAYFORMULA() containing the ROW() for a row-based auto serial numbering. On the other hand, we can perform a sequence-based auto serial numbering using SEQUENCE().
Download Template
This article must be helpful to understand Auto Numbering In Google Sheets, with its formula and examples. You can download the template here to use it instantly.
Recommended Articles
Guide to What Is Auto Numbering In Google Sheets. We discuss all about auto numbers and the top 3 ways to get them with step-wise examples. You can learn more from the following articles. –
Leave a Reply