+ Reply to Thread
Results 1 to 1 of 1

Match 2 random unique arrays & then give ANY other (x) numbers

  1. #1
    Registered User
    Join Date
    12-06-2015
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    35

    Match 2 random unique arrays & then give ANY other (x) numbers

    Thanks to LordLoki for this. At post#4
    http://www.excelforum.com/excel-prog...s-numbers.html


    I’m now asking:
    Question1… If the code can be tweaked to use two (2) sets of unique random numbers instead of, as it is now, one (1) unique random array and one (1) random array?

    Question2… If possible, and this only really applies with lower match requests, give ANY of the other numbers in ascending order. Note here that the code does now sort the other numbers in ascending order but it always gives the others starting at the lowest then the next lowest then the next and so on.

    minnumber = 0
    maxnumber = 20
    Samplesize = 6
    matched = 0

    So for Q2 an Example: Match 6 numbers (Samplesize) in 1 unique random array of 21 (0 to 20) numbers to the same 6 in the other unique random array of 21 numbers. If matched, then give ANY 6 of the other 15 numbers in ascending order.



    Please see attached file ‘Sheets 1&2’ for examples.
    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)

Similar Threads

  1. Random unique numbers
    By Peidus in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-23-2014, 01:34 PM
  2. [SOLVED] Unique random numbers
    By ducecoop in forum Excel General
    Replies: 3
    Last Post: 05-09-2012, 04:41 PM
  3. Unique random numbers
    By Bartlett in forum Excel General
    Replies: 2
    Last Post: 01-28-2012, 03:42 PM
  4. Replies: 2
    Last Post: 07-13-2011, 06:40 AM
  5. random unique numbers
    By Juli in forum Excel General
    Replies: 2
    Last Post: 05-05-2011, 05:48 PM
  6. Excel 2007 : unique random numbers
    By mani01 in forum Excel General
    Replies: 6
    Last Post: 03-24-2010, 05:50 PM
  7. [SOLVED] generate unique random numbers
    By Stephen Larivee in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 03-28-2006, 08:10 PM

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