+ Reply to Thread
Results 1 to 5 of 5

Macro To Randomly Select From List and Place In New Cell

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-29-2011
    Location
    Ottawa, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    107

    Macro To Randomly Select From List and Place In New Cell

    In Cells A1:J1000000 I have a total of 10,000,000 different numbers.

    I would like to randomly select (without duplication) the numbers from A1:J1000000 and move them into cells L1:U1000000 starting with L1 down to L1000000, then M1:M1000000 etc until all the numbers have been randomly selected and moved.

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Macro To Randomly Select From List and Place In New Cell

    Hello ssjagger,

    Maybe you do not realize that the exponential growth of variables within 10 million cells would be so vast, that it could require trillions of Cells which Excel would never be able to cope with.

    Sorry, I believe it is impossible.

    Regards.
    Last edited by Winon; 07-31-2016 at 05:00 PM. Reason: Grammar
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Macro To Randomly Select From List and Place In New Cell

    Not only that but random selection without duplication is not random selection
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  4. #4
    Forum Contributor
    Join Date
    06-29-2011
    Location
    Ottawa, Ontario
    MS-Off Ver
    Excel 2007
    Posts
    107

    Re: Macro To Randomly Select From List and Place In New Cell

    What if I reduced my numbers to 1.5M numbers instead?

    Cell A1:C500000 randomly selected with out duplication into cells E1:G500000?

  5. #5
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Macro To Randomly Select From List and Place In New Cell

    Hello ssjagger,

    Sorry, but even if you did that, the same answers remain valid as provided in Posts #'s 2 and 3.

    Regards.

+ 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] Randomly select 25% of list and copy to new tab
    By fatboyzfishing in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-14-2023, 08:31 PM
  2. RANDomly select from list IF criteria is met
    By Framci in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-30-2015, 05:49 PM
  3. [SOLVED] Randomly select one of two cells to populate from a list
    By 90Shilling in forum Excel General
    Replies: 1
    Last Post: 10-17-2013, 12:04 PM
  4. [SOLVED] if restriction is not met, select another word randomly from the list
    By bloem in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-11-2013, 10:52 AM
  5. [SOLVED] Code to randomly select from a list based on Cell text value inptted
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-20-2013, 05:57 PM
  6. Randomly select from long list
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-17-2011, 08:08 PM
  7. How to randomly select from a list with condition
    By kathyxyz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-27-2005, 11:19 AM

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