Skip to main content

How to quickly insert blank /empty rows in Excel?

Author: Xiaoyang Last Modified: 2024-08-28

Most of us may face the problem in Excel that we need to insert a blank row between each of the existing rows, and all of us know how to insert a blank row manually. But inserting hundreds of blank rows will be a tedious task if you insert each row individually. Here are some quick tricks to help you solve this problem.

Insert blank rows with Sort function
Quickly insert specific numbers of blank rows with Kutools for Excel

Insert alternate blank rows with VBA code


Insert blank rows with Sort function

This method is an easier but roundabout to insert blank rows between exiting rows. You can do as follows:

1. You need a blank column adjacent to your data. For example, I have a worksheet comprises A1:E9, you can use column F.

2. In cell F1 input the number 1, and input 2 in cell F2.

3. Select the number 1 and number 2, and double-click the fill handle, Excel will auto-fill the cells in column F.

4. Then copy this new column F (F1:F9), select the cell F10, and paste the auto-fill number from F1:F9. See screenshot:

fill a series numbers in a new column

5. And then click Data > Sort, and a Sort Warning dialog box will pop out, select Expand the selection option, and click Sort… See screenshot:

select Expand the selection option in the dialog box

6. And a Sort dialog box will appear, choose number 1 from the Sort by dropdown list and then click the OK button. See screenshot:

set options in the sort dialog box

Then the new blank rows have been inserted in the exiting rows. See screenshot:

new blank rows have been inserted in the exiting rows

Note: If you would like to insert two or three blank rows between each row, you can copy the new auto-fill column two or three times to add the new rows.


Quickly insert specific numbers of blank rows with Kutools for Excel

The above two methods just refer to inserting blank rows between each rows, for inserting a blank row or multiple rows after every nth rows, how should you do? Here I recommend the Insert Blank Rows & Columns utility of Kutools for Excel. This uility can help to quickly insert specific numbers of blank rows after every nth rows into a certain range. Please do as follows.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

1. Select the range that you want to insert the blank rows, and click Kutools > Insert > Insert Blank Rows & Columns. See screenshot:

click Insert Blank Rows & Columns feature of kutools

2. In the Insert Blank Rows & Columns dialog box, choose Blank rows in the Insert type section, specify the numbers of interval rows you will insert blank rows based on and number of rows you want to insert, and then click the OK button. See screenshot:

>specify the options in the dialog box

Then you can see certain blank rows have been inserted after every two rows. See screenshots:

certain blank rows are inserted after specific numner of rows

Note: the number in the Interval of and Rows can be adjusted to meet your need. For example, you can insert three, four, five… blank rows after every one, two, three… rows.

  If you want to have a free trial (30-day) of this utility, please click to download it, and then go to apply the operation according above steps.


Insert alternate blank rows with VBA code

If the above way is a little complex, you can use the following VBA code to solve it.

1. Press the Alt + F11 keys to open the Microsoft Visual Basic for applications window, then click Insert > Module and input the following code into the Module:

VBA code: Insert blank rows in Excel

Sub InsertBlackRows()
'Updateby20131127
Dim Rng As Range
Dim WorkRng As Range
Dim FirstRow As Integer, xRows As Integer, xCols As Integer
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
FirstRow = WorkRng.Row
xRows = WorkRng.Rows.Count
xCols = WorkRng.Columns.Count
Application.ScreenUpdating = False
WorkRng.Cells(xRows, 1).Resize(1, xCols).Select
Do Until Selection.Row = FirstRow
    Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
    Selection.Offset(-1, 0).Select
Loop
Application.ScreenUpdating = True
End Sub

2. Then click run button button or press the F5 key to run the code. In the popping up Kutoos for Excel dialog box, please select the range you will insert blank rows, and then click the OK button. See screenshot:

vba code to select data range

Then a new blank row has been inserted between every two rows. See screenshot:

a new blank row has been inserted between every two rows


Related articles

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!