+ Reply to Thread
Results 1 to 12 of 12

Generate Random Numbers Between 0-9

Hybrid View

  1. #1
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702

    Re: Generate Random Numbers Between 0-9

    I presume this is related to something called "The Superbowl", whatever that is.......

    This is one way to achieve what you want without helper cells.....

    In A1

    =INT(RAND()*10)

    in A2

    =SMALL(IF(ISNA(MATCH({0,1,2,3,4,5,6,7,8,9},A$1:A1,0)),{0,1,2,3,4,5,6,7,8,9}),INT(RAND()*(10-ROWS(A$2:A2))+1))

    confirmed with CTRL+SHIFT+ENTER and copied down to A10

  2. #2
    Registered User
    Join Date
    11-29-2012
    Location
    Arizona
    MS-Off Ver
    Excel 2011
    Posts
    3

    Re: Generate Random Numbers Between 0-9

    Quote Originally Posted by daddylonglegs View Post
    I presume this is related to something called "The Superbowl", whatever that is.......

    This is one way to achieve what you want without helper cells.....

    In A1

    =INT(RAND()*10)

    in A2

    =SMALL(IF(ISNA(MATCH({0,1,2,3,4,5,6,7,8,9},A$1:A1,0)),{0,1,2,3,4,5,6,7,8,9}),INT(RAND()*(10-ROWS(A$2:A2))+1))

    confirmed with CTRL+SHIFT+ENTER and copied down to A10
    I was able to use this formula for the rows going down the side, but when I tried to change it for the columns going across the top, numbers kept repeating. Any suggestions?

+ 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