Gap Between Rows

earthworm

Well-known Member
Joined
May 19, 2009
Messages
734
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
I have a data set like this

Row1:Data1
Row2:Data2
Row3:Data3
Row4:Data4

I need a gap between each row and also a single gap like this

Row1:Data1
Row2:Data1
Row3: Space
Row4:Data2
Row5:Data2
Row6:Space
Row7:Data3
Row8:Data3
Row9:Space
Row10:Data4
Row11:Data4

The Purpose is i need a debit entry and also a credit entry to Zerioze the transaction effect

Please guide.

I am able to achieve it but thats not practical which includes insertion of 2-3columns in front of data. its quite complicated . Is there any easy way

secondly
how to give gave between serial number 1-any number without inserting the row between them . is there any easy way ?
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Try this:
Code:
Sub Insert_Row()
    Dim LastRow As Long
    Dim I As Integer
    LastRow = Range("A" & Rows.count).End(xlUp).Row
    For I = LastRow To 3 Step -1
        Rows(1).Copy '  Copy  Header
        Rows(I).Insert
        Rows(I).Insert
    Next I
     End Sub
 
Upvote 0
Try this:
Code:
Sub Insert_Row()
    Dim LastRow As Long
    Dim I As Integer
    LastRow = Range("A" & Rows.count).End(xlUp).Row
    For I = LastRow To 3 Step -1
        Rows(1).Copy '  Copy  Header
        Rows(I).Insert
        Rows(I).Insert
    Next I
     End Sub

is there any formula based method ?
 
Upvote 0

Forum statistics

Threads
1,202,959
Messages
6,052,797
Members
444,602
Latest member
Cookaa

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top