+ Reply to Thread
Results 1 to 4 of 4

Copy row by the number in a specific column

  1. #1
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    323

    Cool Copy row by the number in a specific column

    Hi,

    If there is a 1 in column B do not copy, but if there is a 2 in column B then insert a copy of that row below.
    If there is a 3 in column B then copy that row and insert it twice below and if it is a 4 in column B then insert it 3 times below. The row copied does not have to be inserted directly under the row.

    Thanks for any help,

    David

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Copy row by the number in a specific column

    attach a sample before and after

  3. #3
    Forum Contributor
    Join Date
    02-07-2012
    Location
    MIA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    429

    Re: Copy row by the number in a specific column

    Maybe this works:

    Please Login or Register  to view this content.
    I hope that helps.

    ---------- Post added at 01:42 PM ---------- Previous post was at 01:37 PM ----------

    Just a small comment, that code won't work too well if you have rows which have nothing on column B.
    .?*??)
    `?.???.?*??)?.?*?)
    (?.?? (?.?
    Pichingualas <---
    ??????????????????????????

    Wrap your code with CODE TAGS.
    Thank those who helped you, Don't forget to add to their REPUTATION!!! (click on the star below their post).
    Please mark your threads as [SOLVED] when they are (Thread Tools->Mark thread as Solved).

  4. #4
    Forum Contributor
    Join Date
    07-31-2012
    Location
    Los Angeles, USA
    MS-Off Ver
    2003, 2010, 365
    Posts
    323

    Re: Copy row by the number in a specific column

    Thank you very much, that works perfectly and column B always has a number but thanks for the comment

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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