+ Reply to Thread
Results 1 to 5 of 5

Copying cell value into a varying amount of rows

  1. #1
    Registered User
    Join Date
    02-11-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    7

    Copying cell value into a varying amount of rows

    Hello,

    In Column A, I have a list of non-duplicative 5-digit #'s in a column. In the column B, I have a count for each number. I would like to copy the number in column A into a separate sheet for the amount of times for its respective count.

    For instance, in Sheet 2 cell A2, I have the number 60009 and a count of 5 in cell B2. I would like to take the number 69000 and copy and paste it in sheet 1 in rows A2:A6 (5 times). Then, I would like to move to the next number in Sheet 2 (cell A3), take that number and copy and paste it for its respective count, starting in Sheet 1 cell A7 (so it does not overwrite previous copy/paste).

    I have attached a sample spreadsheet, with the first number in above example completed and highlighted in yellow and the second number highlighted in blue.
    Attached Files Attached Files

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

    Re: Copying cell value into a varying amount of rows

    Please Login or Register  to view this content.

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

    Re: Copying cell value into a varying amount of rows

    Another a bit fast one

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    02-11-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Copying cell value into a varying amount of rows

    Thank you so much for your help. Both codes worked great! Also showed me ways beyond basic for count loops to accomplish tasks like these. Thanks again!

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

    Re: Copying cell value into a varying amount of rows

    Flord,
    You are welcome!
    Could you please now close this thread as solved. Go in to the top-right-hand-side of this page, select, "Thread Tools" from the menu and select solved from the drop down menu?

+ 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