+ Reply to Thread
Results 1 to 4 of 4

Inserting a blank row in between rows

  1. #1
    Registered User
    Join Date
    08-29-2008
    Location
    Washington
    Posts
    2

    Red face Inserting a blank row in between rows

    Is there a formula to automatically do the below? I have a spreadsheet with 13,000 records on it and need this done ASAP? Any help would be appreciated. Thanks. Kim G

    Here's how it looks:

    12345
    12345
    12345
    12345
    12456
    12456
    12456
    12457
    12457

    Here's how I want it to look:

    12345
    12345
    12345
    12345

    12456
    12456
    12456

    12457
    12457

  2. #2
    Registered User
    Join Date
    08-29-2008
    Location
    Washington
    Posts
    2
    Sorry, I meant insert rows in between rows.

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Can't do it with a formula. So try some code.

    Press Alt + F11 > insert new module > paste in the below > close VB editor > Press Alt + F8 > Select InsertRow.

    Note: Assumes data In col A. Change the A reference to your column ref

    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    1. You could add a formula in an unused column (say, B). Then in B2, enter and copy down,

    =IF(A2<>A1, 1, "")

    2. Select that column, and do Edit > Go to > Special, Formula, and check Numbers

    3. Insert > Rows

    4. Delete or clear the temporary column

+ 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. Automation for inserting blank rows
    By phong919 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-10-2008, 01:04 PM
  2. Inserting blank rows ...
    By visitnag in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 04-13-2008, 04:36 AM
  3. Replies: 3
    Last Post: 02-13-2008, 06:28 PM
  4. Subtraction macro request ...
    By rocket1406 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-13-2007, 03:10 PM
  5. Inserting blank rows
    By elew69811 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-05-2007, 12:37 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