+ Reply to Thread
Results 1 to 4 of 4

Insert a blank row if number sequence is not complete.

  1. #1
    Registered User
    Join Date
    02-27-2012
    Location
    phx
    MS-Off Ver
    Excel 2010
    Posts
    10

    Insert a blank row if number sequence is not complete.

    Hello,

    I am working on a large spreadsheet (100K+ rows, 8 columns) and need VBA code that would loop from row 1 to the end of the data and insert a row if the repeating number sequence of "0 through 9" in column H is missing a number. The column H example below starts with 0 in row 1 repeats all the way to the last row. My problem is that sometimes a number is missing in the sequence (like 012356789) and need to insert a blank row where the missing number would go.

    0
    1
    2
    3
    4
    5
    6
    7
    8
    9

    Any assistance would be greatly appreciated.

    Best Regards,

    Sam

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Insert a blank row if number sequence is not complete.

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-27-2012
    Location
    phx
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Insert a blank row if number sequence is not complete.

    John,

    When I tested it entered a blank cell between each row in col H only.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Insert a blank row if number sequence is not complete.

    Try:

    Please Login or Register  to view this content.

+ 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. [SOLVED] Insert rows based on a number and copy complete row
    By prashantsd in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-26-2012, 10:41 AM
  2. [SOLVED] Insert missing rows into repeating number sequence
    By budgie300 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-12-2012, 06:17 PM
  3. [SOLVED] If cell is not blank, assign next number in sequence
    By dylaughin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-09-2012, 03:57 PM
  4. Pivot Table; adding rows to complete a sequence
    By gyrfalcon09 in forum Excel General
    Replies: 3
    Last Post: 05-17-2011, 09:43 AM
  5. If cell is not blank, insert number
    By NathanLedet in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-18-2008, 04: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