+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : unique random numbers

  1. #1
    Registered User
    Join Date
    03-24-2010
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    3

    unique random numbers

    hi, im not very good with excel and need some help asap

    i need to generate 3 random numbers between 0 and 9, and the numbers cannot be the same

    ive been using the randbetween() function, but im just struggling to get them so they do not show the same numbers

    please any help will be much appriciated

    and id prefer not to use VB, if it is possible

    many thanks

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: unique random numbers help

    I did a quick google...

    http://www.cpearson.com/excel/RandomNumbers.aspx


    http://www.mrexcel.com/forum/showthread.php?t=83925

    http://www.ozgrid.com/VBA/RandomNumbers.htm
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    03-24-2010
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: unique random numbers help

    ah ive already scoured the net trying to find a solution to this, ive even been on those websites, and i dnt understand them because they are visual basic codes, which is not what i want...but thanks alot for searching

    i was hoping someone knew a formula in which i can use

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: unique random numbers help

    In the second link I provided, there are a couple of entries that are formula based. Read through the entire thread...

  5. #5
    Registered User
    Join Date
    03-24-2010
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: unique random numbers help

    yea i tried some of those codes before and it was no good

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: unique random numbers help

    As you can see by Aladin's formula.. it is not a simple single formula thing...

    The UDF is much easier to apply....

    But if you follow Aladin's way, substituting as per your needs.. you should get the results desired.

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: unique random numbers help

    See attached for a simplified interpretation of Aladin's formulas...

    I am not sure you need column E as he shows... And I altered column C formulas a bit...

    Test it.

    Note: If you change the number in B2, you get that number of unique randoms...
    Attached Files Attached Files

+ 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