Add new rows, defined by a cell

  • A B C
    B001 - B003 14 A
    B004 6 A
    B005 14 A
    B006 4 A
    B007 10 A
    B008 - A
    B009 ~ B012 8 A
    B015 - A


    For this example I have 3 colums of data.
    in column A I have: B001 - B003
    With this case, I want to create additional rows like this with same sharing data in column B & C:


    needs to be:


    B001 14 A
    B002 14 A
    B003 14 A


    In this example:


    column A I have: B009 ~ 1012


    needs to be:


    B009 8 A
    B012 8 A



    Notice the "-" means all numbers as in 1-3 = 1,2,3
    Notice the "~" means all numbers as in 1~3 = 1,3


    Hope this makes sense. I greatly appreciate it.



    I am attaching the .csv file that gets generated. I renamed with .txt extension to upload.
    Thank you again
    Dan

  • Re: Add new rows, defined by a cell


    Hi Dan,


    Try running this program with your sheet active


    Hope this helps.


    Regards,
    Batman.

    [COLOR="Purple"]Regards,[/COLOR]
    [COLOR="Purple"]Batman.[/COLOR]

  • Re: Add new rows, defined by a cell


    Helps immensely!! Thank very much. I learned a few things to.
    The code was a perfect example, and I was able to extend the range for 3 additional columns of data I just added.
    Thank you very much again. I have thousands of rows of data this will work on.


    Take care,
    Dan
    :thanx:

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!