+ Reply to Thread
Results 1 to 5 of 5

Random Generating Number list - no duplicates in columns or rows

  1. #1
    Registered User
    Join Date
    07-20-2022
    Location
    Saskatchewan, Canada
    MS-Off Ver
    365
    Posts
    7

    Random Generating Number list - no duplicates in columns or rows

    I am looking for assistance in a formula to generate a random list of numbers between 1 and 15 within two adjacent columns. I am looking for lists without duplicates within each column and within each row.

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

    Re: Random Generating Number list - no duplicates in columns or rows

    Hi SAB and welcome to the forum,

    See if the attached does what you want. You need to press F9 to recalculate until the sum of matches is zero. See the attached.
    Rand 15 numbers in Col and Row.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    07-20-2022
    Location
    Saskatchewan, Canada
    MS-Off Ver
    365
    Posts
    7

    Re: Random Generating Number list - no duplicates in columns or rows

    Thank you! This is perfect and I'll be able to adapt the concept. I appreciate it

  4. #4
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,420

    Re: Random Generating Number list - no duplicates in columns or rows

    Since you are using XL365, you do not have to fill in all those cells with individual formulas... you need only 3 formulas total. Try the following on an empty sheet...

    Put this formula in cell A1:
    =RANDARRAY(15,2,1,15,0)

    Put this formula in cell C1 and copy it across to cell D1:
    =RANK(A1:A15,A1:A15)
    Last edited by Rick Rothstein; 07-20-2022 at 11:14 PM.

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Random Generating Number list - no duplicates in columns or rows

    a small typo in post #4: correct is: ..... and copy it accross to cell D1
    [Thx typo in post #4 is intermediately corrected]
    Last edited by HansDouwe; 07-20-2022 at 11:22 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Random number generator not always generating random numbers
    By Murman01 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-03-2021, 05:29 PM
  2. [SOLVED] Help with avoiding duplicates with generating random numbers
    By maym in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-14-2017, 11:04 PM
  3. Replies: 1
    Last Post: 10-19-2016, 12:22 PM
  4. Random numbers, no duplicates, across rows and columns
    By Bambamghost in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-02-2016, 02:01 PM
  5. Generating a list of Random numbers of random length...
    By Growl in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2013, 12:10 PM
  6. Generating a Random Number of Random Numbers
    By Garrus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2010, 09:39 AM
  7. generating random number list?
    By planetizzie in forum Excel General
    Replies: 10
    Last Post: 10-21-2009, 11:45 AM

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