How to Insert Rows Automatically in Excel (4 Ways)

The dataset below contains the names, Regions, and Ranks of some sales representatives. We need to insert rows into the dataset automatically.

Dataset to Insert Rows in Excel Automatically


Method 1 – Inserting Rows Manually

Steps:

  • Select a row where you want to insert a new row. Right-click on the mouse to open the options. From the available options, click on Insert.

How to Insert Rows in Excel Automatically

  • A dialog box will open. Select the Entire row radio button to insert an entire row.
  • Click OK to continue.

How to Insert Rows in Excel Automatically

  • A new row is inserted.

Alternate 1:

  • Click on the row serial numbers.

  • Right-click on the mouse to open options.
  • From the options, select Insert.

How to Insert Rows in Excel Automatically

  • Excel will insert a new row.

Alternate 2:

  • Select a row where you want to insert a new blank row.
  • In the Home Tab, go to the Cells ribbon and click on Insert.
  • Select Insert Sheet Rows.

How to Insert Rows in Excel Automatically

  • And a new row is created.

Read More: How to Insert a Total Row in Excel


Method 2 – Inserting Multiple Rows Automatically

Steps:

  • Press the CTRL key, hold it, and select the rows before where you want to insert.

How to Insert Rows in Excel Automatically

  • Right-click on your mouse and a menu list will appear, as shown in the image below.
  • Select Insert.

How to Insert Rows in Excel Automatically

  • Multiple rows will be inserted.

Read More: How to Insert Multiple Blank Rows in Excel


Method 3 – Using a Keyboard Shortcut 

Steps:

  • Click on a row above where you want a new row.
  • Press “CTRL, SHIFT, (+)” to insert a new row.

  • Look at the dataset. We have got our new row.

How to Insert Rows in Excel Automatically

Alternate:

  • Click on the row in the dataset.
  • Press “ALT+I+R”.

How to Insert Rows in Excel Automatically

  • Our dataset has a new row just up to the selected row.


Method 4 – Assigning a VBA Code 

Steps:

  • Press ALT+ F11 to open the Visual Basic Editor window.
  • In the VBA window, click on Insert > and select Module from the option.

  • A new module window appears.
  • Enter the following code:
Public Sub Inserting_Row()
ActiveCell.Offset(1, 0).Rows("1:1").EntireRow.Insert SHIFT:=xlDown
End Sub

VBA Code to Insert Rows in Excel Automatically

  • Press ALT+Q to close the module window.
  • Press ALT+F8.
  • Another pop-up named Macro will appear on the worksheet. Click Options in the pop-up.

  • Enter the shortcut key for inserting new rows automatically. We have chosen “CTRL + SHIFT + R
  • Click OK.

How to Insert Rows in Excel Automatically

  • Click Run to run the code.

  • While the code is now active, Press “CTRL + SHIFT + R” to create new rows.

  • You will see a new row has been inserted to your table.

Read More: How to Insert Row Below in Excel


Things to Remember

⏩ You have to select the cell above where you want to insert a row automatically.


Download the Practice Workbook

Download this workbook to practice.


Related Articles


<< Go Back to Insert Rows | Rows in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Asikul Himel
Asikul Himel

Asikul Islam Himel, holding a BSc in Naval Architecture and Marine Engineering from Bangladesh University of Engineering and Technology, has contributed over two years to the ExcelDemy project. Starting as an Excel & VBA Content Developer, now he manages projects at You Have Got This Math Project. He wrote 60+ articles for ExcelDemy, reviewed 500+, and focused on quality maintenance. Currently, his responsibilities include project management and team leadership. Himel's interests encompass data analysis, leadership, WordPress applications, and... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo