+ Reply to Thread
Results 1 to 8 of 8

Copy Rows based on value in column

  1. #1
    Registered User
    Join Date
    05-02-2013
    Location
    Indonesia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Lightbulb Copy Rows based on value in column

    Dear all friends,

    I need help for this case. I have a set of data, let me type in text :

    Column A | Column B | Column C | Column D |
    Name | *** | Hobby | value for duplicate rows

    John | Male | Soccer | 12
    Bryan| Male | Swim | 8
    Dave | Male | Tennis | 28
    Tracy | Female | Read | 9
    Steve | Male | Golf | 38

    I need to copy each rows based on value in right colum. for example i need to copy

    John | Male | Soccer | 12

    as much as 12 times, and then copy

    Bryan| Male | Swim | 8

    as much as 8 times after John

    and so on until last row.

    Please help me to sove this problem.

    Thx,

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Copy Rows based on value in column

    Hi anak,

    Welcome to the forum
    And by copy you mean copy and pasting below to previous one (appending).. correct ?

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    05-02-2013
    Location
    Indonesia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Copy Rows based on value in column

    Yes dilipandey, thats what i need. Pasting below to previous one.

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Copy Rows based on value in column

    Okay.. try using below macro (vba) code:-

    Please Login or Register  to view this content.
    Regards,
    DILIPandey
    <click on below * if this helps>

  5. #5
    Registered User
    Join Date
    05-02-2013
    Location
    Indonesia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Copy Rows based on value in column

    It works really nice.

    Thank you very much DILIPandey.

    You're brilliant.

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Copy Rows based on value in column

    you are welcome .... cheers
    Please mark this thread as [SOLVED].. Thanks.

    Regards,
    DILIPandey
    <click on below * if this helps>

  7. #7
    Registered User
    Join Date
    05-02-2013
    Location
    Indonesia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Copy Rows based on value in column

    Okay, Done. Thanks.

  8. #8
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Copy Rows based on value in column

    Thanks anak2muda2



    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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