+ Reply to Thread
Results 1 to 4 of 4

Pick random names from list

  1. #1
    Registered User
    Join Date
    04-08-2013
    Location
    Boston, MA USA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Pick random names from list

    I have a simple spreadsheet listing 249 names. Columns are: Number, First Name, Last Name (36, John, Doe) I need to randomly choose 12 names each day. I created a simple RANDBETWEEN function and coppied it into 12 cells so I get 12 numbers everytime the sheet is opened. I then have to look at the names that are in the appropriate row. I'd like to have it actually show the correct name next to the randomly generated number. 7 John Doe, 36 Tim Smith, 44 Bill Perkins. Is that possible?

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Pick random names from list

    Take a look to VLOOKUP or INDEX & MATCH functions.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Pick random names from list

    The easiest way to do this is...

    If you have 249 rows of data, say A1:C249. Enter this formula in D1 and copy down to D249:

    =RAND()

    Select the entire range A1:D249 and do a sort on column D. You can sort in either direction, ascending or descending, it doesn't matter.

    Now, take the top 12 rows for your random selections.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    04-08-2013
    Location
    Boston, MA USA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Pick random names from list

    Tok a little tweaking but VLOOKUP did it. 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