+ Reply to Thread
Results 1 to 2 of 2

Simple macro to insert a new row if 2 numbers exceeding 99999999 are next to each other

  1. #1
    Registered User
    Join Date
    10-19-2013
    Location
    United Kingdom
    MS-Off Ver
    MS office 2003
    Posts
    25

    Simple macro to insert a new row if 2 numbers exceeding 99999999 are next to each other

    Hi,

    The data i currently have is structured in a way like this all in one column (A)

    [12-20 digit number]
    [8 digit number]
    [8 digit number]
    [8 digit number]
    [8 digit number]
    [12-20 digit number]
    [12-20 digit number]
    [8 digit number]
    [8 digit number]
    [8 digit number]
    [8 digit number]
    [8 digit number]
    [8 digit number]
    [8 digit number]
    [12-20 digit number]
    [12-20 digit number]
    [8 digit number]
    [8 digit number]
    [8 digit number]
    [12-20 digit number]


    And so on, i just need a macro that will insert a blank row inbetween the 12-20 digit numbers (figure the easiest way to define these numbers to excel would just be to do it for values that exceed the max. number the 8 digit numbers could be, i.e. 99999999), to separate them

    so it would look like this :

    [12-20 digit number]
    [8 digit number]
    [8 digit number]
    [8 digit number]
    [8 digit number]
    [12-20 digit number]

    [12-20 digit number]
    [8 digit number]
    [8 digit number]
    [8 digit number]
    [8 digit number]
    [8 digit number]
    [8 digit number]
    [8 digit number]
    [12-20 digit number]

    [12-20 digit number]
    [8 digit number]
    [8 digit number]
    [8 digit number]
    [12-20 digit number]

    Could anyone help me out on this one? Have spent an hour trying to it, and I know you guys will find it so simple!!

    I have attached an excel sheet with example data data.xls

    Thanks for your help

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Simple macro to insert a new row if 2 numbers exceeding 99999999 are next to each othe

    try this:
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

+ 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. Macro to copy and insert cpoed row data based on numbers in the column
    By hazemrezo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-08-2013, 08:08 PM
  2. [SOLVED] Adding only numbers exceeding 2
    By Marvo in forum Excel General
    Replies: 4
    Last Post: 09-16-2013, 06:39 PM
  3. [SOLVED] Restarting a running VBA macro on cell value exceeding limits
    By naira in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-12-2013, 05:40 AM
  4. Macro to print from various workbooks and insert page numbers consecutively
    By TheGrandeMasterSmag in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-23-2011, 08:06 AM
  5. [SOLVED] Need Simple Copy and Insert Row, Move Down Macro
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-24-2006, 12:25 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