Closed Thread
Results 1 to 2 of 2

Copy and insert rows n number of times + operations on data

  1. #1
    Registered User
    Join Date
    10-08-2010
    Location
    Rome
    MS-Off Ver
    Excel 2003
    Posts
    3

    Copy and insert rows n number of times + operations on data

    Hi
    I am a total beginner and i am trying to write a macro to do some operations on a dataset, but I cannot get through it. can someone help me? thanx!

    The start matrix
    A B C
    row1 abc def 3
    row2 ghi lmn 2

    the matrix must be copied on a different sheet than i need to replicate each row as many times as indicated in column c + fill in an extra cell (column D) that concatenates the content of cell B and C

    in practice, the result to be obtained

    A B C D
    row1 abc def 3 def1
    row2 abc def 3 def2
    row3 abc def 3 def3
    row4 ghi lmn 2 lmn1
    row5 ghi lmn 2 lmn2

    i will really appreciate any help! thanx a million!

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy and insert rows n number of times + operations on data

    Be sure to read through the Forum Rules so you can use and follow them effectively.

    This is a duplicate post to a question already asked (and answered).

    Duplicate posts and cross-posting the same question on multiple web sites leads to you wasting people's time. You don't want to do that, right?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

Closed 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