+ Reply to Thread
Results 1 to 5 of 5

Inserting empty rows

  1. #1
    Registered User
    Join Date
    11-03-2016
    Location
    Virginia, USA
    MS-Off Ver
    2013
    Posts
    1

    Inserting empty rows

    I have a spreadsheet with rows 3 through 92 populated with data and I’d like to put an empty row in between each of the populated rows. Is it possible to do this in one step, without manually adding a row 90 times, over and over?

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Inserting empty rows

    So you can manually select each row by clicking on the row number on the left of the spreadsheet. Once all of the rows are selected you can hit CTRL+Shift+"+" or just INSERT ROWS as normal and that would work.

    Otherwise you can use VBA to fairly simply do this as well.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Inserting empty rows

    Hi,

    The easiest way without resorting to a macro would be to use a helper column. e.g. column E
    In E3 enter the value 1, then in E4 copied down to E92 enter
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    now in E93 enter the value 4 and in E94 copied down to E183 enter
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Now select the data from rows 3:183 including your helper column E and sort ascending using the helper column as the key
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Inserting empty rows

    If you want to use VBA:

    Please Login or Register  to view this content.
    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button

  5. #5
    Forum Contributor
    Join Date
    12-18-2016
    Location
    London
    MS-Off Ver
    Microsoft 2013
    Posts
    145

    Re: Inserting empty rows

    You can create the blank rows separately and then interleave them with the existing rows by sorting. To start, insert a new column to the left of the existing column A. Enter 1 in cell A1 and highlight column A all the way to the last row that contains data. From the Edit menu select Fill | Series and click on OK. Column A should now contain numbers from 1 to the total number of rows. Press Ctrl-C to copy these cells to the clipboard, click in the cell just below the last of them, and press Ctrl-V to paste. Now highlight the entire data area, including the new rows with just a number in column A. Select Sort from the Data menu and choose the No header row option in the resulting dialog box. Under Sort by select Column A, under Then by select column B, and click on OK. Finally, delete column A

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Inserting Formula Based On Another Cell Empty Or Not
    By StormStrikes in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-01-2015, 03:55 PM
  2. Inserting an empty row above every highlighted row of data
    By terryhenderson in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-12-2014, 02:41 AM
  3. Replies: 0
    Last Post: 05-20-2014, 11:58 AM
  4. Delete Empty Rows and empty columns from the word table
    By mvneema in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2014, 10:51 AM
  5. Auto inserting empty rows into a populated sheet
    By Backroomgeeza in forum Excel General
    Replies: 4
    Last Post: 04-24-2012, 08:09 PM
  6. Autofilter/delete empty rows is deleting non-empty rows!
    By oOarthurOo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2010, 12:31 PM
  7. Inserting a empty Row if the value change
    By kaffal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2009, 01:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1