+ Reply to Thread
Results 1 to 5 of 5

Formula to generate unique random numbers?!?

  1. #1
    Registered User
    Join Date
    06-29-2009
    Location
    Glasgow
    MS-Off Ver
    Excel 2003
    Posts
    1

    Formula to generate unique random numbers?!?

    Hi,

    Can someone please help as I don't have a clue what I'm doing!?!?

    I need to be able to generate unique and random numbers in a column
    of my spreadsheet.

    The spreadsheet has just over 10,000 records - is there a really simple formula that will do this?

    Thanks!!

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,018

    Re: Formula to generate unique random numbers?!?

    If your unique random number depends on previous numbers then it's not random anymore.

    if RAND() is not enough for you you can do RAND()*RAND()*RAND() or something like that..
    Never use Merged Cells in Excel

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

    Re: Formula to generate unique random numbers?!?

    You just want a random sequence of non-repeating numbers 1 to 10000?
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Formula to generate unique random numbers?!?

    Put the numbers 1 through 10,000 in A1:A10000 (use fill series to make it quicker).
    In B1 type the formula: =RAND( )
    Fill that down to B10000 (double-click the lower right corner of B1 to auto-fill down)
    Select columns A:B and sort by column B.

    There's your random ordered list from 1 to 10000.

  5. #5
    Registered User
    Join Date
    04-07-2013
    Location
    Windsor NS
    MS-Off Ver
    2010
    Posts
    1

    Thumbs up Re: Formula to generate unique random numbers?!?

    Paul - thanks for the solution you provided. Its four years since you posted your answer, but I stumbled across it today seeking a solution to my random unique number needs, and its done just what I needed. thks

+ 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