+ Reply to Thread
Results 1 to 4 of 4

Copy row based on criteria & clean up record

  1. #1
    Registered User
    Join Date
    09-02-2011
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    2

    Post Copy row based on criteria & clean up record

    Please can someone assist with a macro to do the following:
    1. Copy a row n number of times based on the data in column E. In the example attached, search for ";#". In this case, you need to copy row number 25 3 times.
    You now should have 4 rows with exactly the same data.

    2. Clean up the data in column E to have unique values with the rows just copied ie. in the example attached, one should end up with:-
    "Bank account less than 6 months old" in row number 25
    "Bank account not verified" in row number 26
    "case not rerouted" in row number 27
    "Case not spawned" in row number 28

    Thanks
    Neil
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor gjlindn's Avatar
    Join Date
    08-01-2011
    Location
    Dodgeville, WI
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    369

    Re: Copy row based on criteria & clean up record

    if you're not concerned about the rows being next to each other, this should work
    Please Login or Register  to view this content.
    Last edited by gjlindn; 09-02-2011 at 02:39 AM.
    -Greg If this is helpful, pls click Star icon in lower left corner

  3. #3
    Valued Forum Contributor gjlindn's Avatar
    Join Date
    08-01-2011
    Location
    Dodgeville, WI
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    369

    Re: Copy row based on criteria & clean up record

    If you do have data following the row(s) you're fixing and want to keep the new rows all together, this code would be better
    Please Login or Register  to view this content.
    Last edited by gjlindn; 09-02-2011 at 02:39 AM.

  4. #4
    Valued Forum Contributor gjlindn's Avatar
    Join Date
    08-01-2011
    Location
    Dodgeville, WI
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    369

    Re: Copy row based on criteria & clean up record

    One more modification...This one keeps them in the same order they were originally listed in.
    Please Login or Register  to view this content.
    Last edited by gjlindn; 09-02-2011 at 02:54 AM. Reason: Added speed up script for larger files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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