+ Reply to Thread
Results 1 to 2 of 2

select names randomly

  1. #1
    Registered User
    Join Date
    01-26-2005
    Posts
    1

    select names randomly

    I need to be able to select from a list names randomly, how do I do this?

  2. #2
    Forum Contributor
    Join Date
    09-05-2004
    Location
    Melbourne
    Posts
    193
    Assuming that the names are in Col A starting at A1, use this formula.

    =INDEX(A:A,RANDBETWEEN(1,COUNTA(A:A)))

    this will change each time an action occurs on that workbook.

    if your list of names start at Row 3 in Col C, for example, than your formula will change to this

    =INDEX(C:C,RANDBETWEEN(3,2 + COUNTA(C:C)))

    Cheers!

    Note: This also assumes that only names exists in the column

+ 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