+ Reply to Thread
Results 1 to 8 of 8

Insert a blank row in incomplete sequence

  1. #1
    Registered User
    Join Date
    11-08-2014
    Location
    Malaysia
    MS-Off Ver
    2010
    Posts
    84

    Smile Insert a blank row in incomplete sequence

    Hello folks,

    I have a sequence of data (1-31) in column "E", and sometimes a number is missing in between and I need to insert a blank row where the missing number would go.
    I've searched and found this code from excel forum for a similar problem, but it needs a small change since the code is for a sequence of "0-9". Could you please help me?
    2016-09-28_17-52-42.png

    Please Login or Register  to view this content.
    Thank you for the time.
    Attached Files Attached Files
    Last edited by Moriexcel; 09-29-2016 at 05:31 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,885

    Re: Insert a blank row in incomplete sequence

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    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 in incomplete sequence

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-08-2014
    Location
    Malaysia
    MS-Off Ver
    2010
    Posts
    84

    Re: Insert a blank row in incomplete sequence

    Thanks. But a small issue is still remaining.
    For example: It gives me this 2016-09-28_21-23-15.png, but I would like to have
    30
    31
    blank or 1
    blank or 2
    3
    4

  5. #5
    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 in incomplete sequence

    I'm sorry, but I can't see your .png view. Can you post another sample showing what you are getting and what result you want?

  6. #6
    Registered User
    Join Date
    11-08-2014
    Location
    Malaysia
    MS-Off Ver
    2010
    Posts
    84

    Re: Insert a blank row in incomplete sequence

    OK no problem.
    The code gives me this for example:
    30
    31
    blank (created by code)
    3
    4
    while I need to have:
    30
    31
    blank (for 1)
    blank (for 2)
    3
    4
    Hope it helps. If not please let me know to attach the output file to the original post. Thanks again.

  7. #7
    Registered User
    Join Date
    11-08-2014
    Location
    Malaysia
    MS-Off Ver
    2010
    Posts
    84

    Re: Insert a blank row in incomplete sequence

    ///////////////////
    Last edited by Moriexcel; 10-01-2016 at 03:23 AM.

  8. #8
    Registered User
    Join Date
    11-08-2014
    Location
    Malaysia
    MS-Off Ver
    2010
    Posts
    84

    Re: Insert a blank row in incomplete sequence

    Does anybody has a solution for my problem?

+ 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. Replies: 1
    Last Post: 06-29-2016, 03:44 AM
  2. [SOLVED] Insert Row Sequence Formula
    By delaing in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-24-2016, 05:50 PM
  3. insert missing values in a sequence
    By newexcel123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-02-2014, 07:19 AM
  4. insert a blank row for a missing value of a repeated sequence
    By newexcel123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-29-2014, 01:58 PM
  5. Insert a blank row if number sequence is not complete.
    By califorlina in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-11-2013, 08:59 AM
  6. [SOLVED] Insert row when a row in the sequence is missing
    By mhelmers in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-29-2013, 10:58 AM
  7. Macro to insert many pictures in sequence?
    By applegatecz in forum Word Programming / VBA / Macros
    Replies: 0
    Last Post: 01-13-2010, 04:35 PM

Tags for this Thread

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