+ Reply to Thread
Results 1 to 2 of 2

Pick 2 numbers randomly from list and iterate

  1. #1
    Registered User
    Join Date
    07-10-2012
    Location
    Belgium
    MS-Off Ver
    Excel 2007
    Posts
    1

    Pick 2 numbers randomly from list and iterate

    Dear all,

    I am looking for a way to pick 2 values randomly from a column of 10 values.
    The 2 picked values should be copied in a new sheet. Furthermore, the pick-and-copy process should iterate for 1000 or 10,000 times, in order to create a large sample.

    Is there anyone who can help me with this problem?

    Thanks in advance!
    mrtn
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Pick 2 numbers randomly from list and iterate

    In Values!A2
    =INDEX(returns!$A$2:$A$11,RANDBETWEEN(1,10)) dragged down as far as you need it. Can Value 2 = Value 1? If so, repeat in Column B. You can then copy>paste special>values to remove the formulas (and stabilize the process).
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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