+ Reply to Thread
Results 1 to 5 of 5

Macro loop to copy cells "x" amount of times in two additiional columns

  1. #1
    Registered User
    Join Date
    05-16-2012
    Location
    Guernsey, C.I
    MS-Off Ver
    Excel 2010
    Posts
    31

    Macro loop to copy cells "x" amount of times in two additiional columns

    I have a workbook with two columns, Column A reference "CC" which has 256 different values and Column B "EXP" which has has 25. What i want to achieve is for values in C for every value in Column A copy x 25 times. In column D would be copy the 25 values in column B x number of times based on column C.
    Apologies for my wording, its quite hard to explain. I have attached a spreadsheet highlighting in yellow the first two results I would expect.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro loop to copy cells "x" amount of times in two additiional columns

    The site is getting very slow. Try the attached. You need to click the button.
    Attached Files Attached Files
    Last edited by AB33; 02-20-2014 at 12:38 PM.

  3. #3
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Macro loop to copy cells "x" amount of times in two additiional columns

    Try this:-
    Please Login or Register  to view this content.
    Regards Mick

  4. #4
    Registered User
    Join Date
    05-16-2012
    Location
    Guernsey, C.I
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: Macro loop to copy cells "x" amount of times in two additiional columns

    AB33 & MickG thankyou very much for your quick response and accurate code both work a treat.

  5. #5
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Macro loop to copy cells "x" amount of times in two additiional columns

    You're welcome

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to copy cells from workbook,where column C is = "num1" AND Column D ="num2"
    By jarious87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-10-2013, 03:30 PM
  2. [SOLVED] Macro loop for "text to columns"
    By SteHB210 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-23-2012, 12:14 PM
  3. [SOLVED] Loop to check for "yes" then copy the IDs with "yes" and paste to other workbook
    By Hallet in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-11-2012, 12:41 PM
  4. How can i copy value from "HTMLText"(EMBED("Forms.HTML:Text","")),using Macro
    By andrewyang in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2010, 12:47 AM
  5. loop formula to occur "N" times
    By gregvb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-17-2008, 03:28 PM

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