+ Reply to Thread
Results 1 to 7 of 7

Select Random Number from List

  1. #1
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Select Random Number from List

    Say I have a list of 100 numbers (in column A). What formula would I use to have Excel list (in column B) 50 random numbers from the list of 100 or column A?

    Thank you in advanced,

    D
    Last edited by dreicer_Jarr; 10-23-2009 at 04:18 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Select Random Number from List

    In an unused column, =RAND() and copy down. Sort by that column and choose the first 50.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Re: Select Random Number from List

    I am missing something. The Rand() function will give me a random number between 0 to 1, but I want 50 random numbers from a list which I have in a separate column (column A). Does that make sense?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Select Random Number from List

    The point of the random numbers is to randomly order the list when sorted. Choose the first 50 from any column you like.

  5. #5
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Re: Select Random Number from List

    Nevermind, I just got what you are saying. The problem is that I don't want to be sorting this table continually as this report is meant to be automatic. There must be a way to just choose 50 random numbers from a column (aka the main column) without sorting (or setting up a macro to automatically sort). The main column will continually be changing and so I don't want to be sorting on a regular basis. Make sense?

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Select Random Number from List

    =INDEX(A1:A100, MATCH(SMALL(B1:B100, ROW()), B1:B100, 0))

    ... where A contains your values of interest, and B contains random numbers.

  7. #7
    Forum Contributor
    Join Date
    04-02-2008
    Location
    Jacksonville Beach, Florida
    MS-Off Ver
    Microsoft Excel 2003 and 2010
    Posts
    264

    Re: Select Random Number from List

    I wish I had your brain. Thanks.

+ 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