Auto Numbering in Excel After Row Insert (5 Suitable Examples)

Example 1 – Using the ROW Function

Steps

  • Select the range of cells B4:F12.

  • Go to the Insert tab in the ribbon.
  • From the Tables group, select the Table option.

  • The Create Table dialog box will appear.
  • Click on OK.

  • We will get the following table.

  • Select cell B5.

  • Use the following formula in the formula box.
=ROW()-4

Here, we subtract 4 because the ROW function will give us the existing row. By subtracting 4, we can get the first number.

Auto Numbering in Excel After Row Insert

  • Press Enter and it will automatically fill all the blank cells in Product No.

Auto Numbering in Excel After Row Insert

  • If we insert a new row, it will automatically change the numbering.

Auto Numbering in Excel After Row Insert


Example 2 – Applying the COUNTA Function

Steps

  • Select cell B5.

  • Use the following formula.
=COUNTA($C$5:C5)

Auto Numbering in Excel After Row Insert

  • Press Enter to apply the formula.

Auto Numbering in Excel After Row Insert

  • Drag the Fill Handle icon down the column.

Auto Numbering in Excel After Row Insert

  • Select the range of cells B4:F12.

  • Go to the Insert tab in the ribbon.
  • From the Tables group, select the Table option.

  • The Create Table dialog box will appear.
  • Click on OK.

  • We will get the following table.

  • If we insert a new row, it will automatically update the auto-numbering sequence.

Auto Numbering in Excel After Row Insert

Read More: How to Add Automatic Serial Number with Formula in Excel


Example 3 – Adding Numbers via an Addition Formula

Steps

  • Put the value 1 in cell B5.

  • Select cell B6.

  • Use the following formula.
=B5+1

Auto Numbering in Excel After Row Insert

  • Press Enter to apply the formula.

Auto Numbering in Excel After Row Insert

  • Drag the Fill Handle icon down the column.

Auto Numbering in Excel After Row Insert

  • Select the dataset.

  • Go to the Insert tab in the ribbon.
  • From the Tables group, select the Table option.

  • Then, the Create Table dialog box will appear.
  • Click on OK.

  • Here’s the resulting table.

  • If we insert a new row, it will automatically update the auto-numbering sequence.

Auto Numbering in Excel After Row Insert

Read More: Automatically Number Rows in Excel


Example 4 – Using an Excel Table Formula

Steps 

  • Select the dataset.

  • Go to the Insert tab in the ribbon.
  • From the Tables group, select the Table option.

  • The Create Table dialog box will appear.
  • Click on OK.

  • We will get the following table.

  • Select cell B5.

  • Use the following formula in the formula box.
=ROW()-ROW(Table6[#All])

Change the table name from Table6 to the name of your table (listed in the ribbon).

Auto Numbering in Excel After Row Insert

  • Press Enter and It will automatically fill all the blank cells in Product No.

Auto Numbering in Excel After Row Insert

  • If we insert a new row, Excel will automatically change the numbering.

Auto Numbering in Excel After Row Insert


Example 5 – Implementing the OFFSET Function

Steps

  • Put value 1 in cell B5.

  • Select cell B6.
  • Insert the following formula:
=OFFSET(B6,-1,0)+1

Auto Numbering in Excel After Row Insert

  • Press Enter to apply the formula.

Auto Numbering in Excel After Row Insert

  • Drag the Fill Handle icon down the column.

Auto Numbering in Excel After Row Insert

  • Select the dataset.

  • Go to the Insert tab in the ribbon.
  • From the Tables group, select the Table chart.

  • The Create Table dialog box will appear.
  • Click on OK.

  • We will get the table.

  • If we insert a new row, Excel will automatically update the auto-numbering sequence.

Auto Numbering in Excel After Row Insert


Download the Practice Workbook


Get FREE Advanced Excel Exercises with Solutions!
Durjoy Paul
Durjoy Paul

Durjoy Kumar, with a BSc in Naval Architecture & Engineering from Bangladesh University of Engineering and Technology, is a dedicated contributor to the ExcelDemy project. His substantial contributions include crafting numerous articles and demonstrating expertise in Excel and VBA. Durjoy adeptly automates Excel challenges using VBA macros, offering valuable solutions for user interface challenges. Apart from creating Excel tutorials, he is interested in Data Analysis with MS Excel, SPSS, C, C++, C#, JavaScript, Python Web Scraping, Data Entry... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo