+ Reply to Thread
Results 1 to 6 of 6

Random Names and Numbers (non-repeating)

  1. #1
    Registered User
    Join Date
    01-15-2011
    Location
    Utah, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Random Names and Numbers (non-repeating)

    Is there a simple way to take a list of 12 names and randomly assign a number between 1 and 12 (however the numbers cannot repeat).

    Thanks,

    Mitch

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Random Names and Numbers (non-repeating)

    Here's one quick & dirty way. Add a column after the names in B. Fill it with

    =RAND()

    for as many lines as have names. Then column C put

    =ROW()

    also for every row. Then hit F9, and sort the whole sheet by column B. The names will be randomly arranged, and column C will always have the row numbers 1-12.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Random Names and Numbers (non-repeating)

    Hi mitchp and welcome to the forum,

    Here is an example of what I think 6SJ is talking about. See the attached.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    01-15-2011
    Location
    Utah, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Random Names and Numbers (non-repeating)

    Thank you! I'll give that a try!

    Mitch

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Random Names and Numbers (non-repeating)

    Precisely--the autofilter sort makes it easier also, nice touch.

  6. #6
    Registered User
    Join Date
    01-15-2011
    Location
    Utah, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Random Names and Numbers (non-repeating)

    Thanks for the help!

    All the best,

    M

+ 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