+ Reply to Thread
Results 1 to 4 of 4

How to copy numbers in a column X amount of times, in another column

  1. #1
    Registered User
    Join Date
    02-19-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    How to copy numbers in a column X amount of times, in another column

    I have an order of numbers in one column, I need to re-create this order except each number needs to be copied 13 times. How can I reference each order number 13x?

    I have copied and pasted the first 3 order numbers to do this as shown in the image - any ideas on how I could automate this?
    Example.jpg

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: How to copy numbers in a column X amount of times, in another column

    Something like:
    Please Login or Register  to view this content.

    (right click worksheet tab, click 'View Code', paste the code from above, press Alt-F4, press Alt-F8, click run, done)
    Last edited by Olly; 02-19-2014 at 10:21 AM.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    02-19-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: How to copy numbers in a column X amount of times, in another column

    Wow!!! Thank you so much, It worked with no problems!

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: How to copy numbers in a column X amount of times, in another column

    Of course it did

    Thanks for the feedback

+ 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. [SOLVED] Limit the amount of times you can insert the same date in a column
    By craig0357 in forum Excel General
    Replies: 4
    Last Post: 01-03-2014, 04:45 PM
  2. [SOLVED] Highlighting text in a column- a different colour for the amount of times it is repeated
    By gavwalsh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-11-2013, 04:44 AM
  3. Copy and Paste data in column A number of times displayed in column B
    By anthony232 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-15-2013, 05:13 PM
  4. Replies: 7
    Last Post: 12-19-2012, 04:11 PM
  5. Replies: 2
    Last Post: 12-09-2009, 06:36 AM

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