+ Reply to Thread
Results 1 to 1 of 1

Random number generation across multiple ros/columns without repeats

  1. #1
    Registered User
    Join Date
    06-27-2013
    Location
    Boulder, CO
    MS-Off Ver
    Excel 2007
    Posts
    99

    Random number generation across multiple ros/columns without repeats

    Greetings, all,

    I'm having a couple problems getting a randomizer to work that has no duplicates in either rows or columns. I have a 5 Row / 10 Col grid that I'm trying to randomly generate numbers into, where any specific cell has no duplicates in its row or column. There should be 2 references to each conference room in each row, but only one in each column.

    The formula I'm using is a list of =RAN() in one column with a static number in one cell. Then using the following formula copied into the cells:
    =VLOOKUP(IF(ROW()-ROW(A$1)+1>$N$1/2,"",RANK(OFFSET($O$1,ROW()-ROW(A$1)+(COLUMN()-COLUMN($A1))*($N$1/10),),$O$1:INDEX($O$1:$O$10,$N$1))),$A$22:$B$31,2,FALSE)

    First problem [SOLVED],
    As I go down the rows, I start getting progressively more errors on the right side, because it keeps looking for a 0 Row


    Second problem,
    I'm getting duplicates in columns. The rows are all fine, but the columns will sometimes have duplicates.

    I'm stumped. Any suggestions that don't involve VBA?

    Thanks,

    -Z
    Randomizer.xlsx
    Last edited by Zodeeak; 08-28-2014 at 12:53 PM. Reason: Clarification

+ 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 generation
    By jas5432 in forum Excel General
    Replies: 6
    Last Post: 02-15-2014, 11:00 PM
  2. Excel 2007 : Random number generator without repeats
    By HRJames in forum Excel General
    Replies: 4
    Last Post: 03-24-2011, 11:37 AM
  3. Random Number Generation
    By vioravis in forum Excel General
    Replies: 3
    Last Post: 02-27-2009, 08:39 PM
  4. code not working properly - VBA beginner (random numbers generation, no repeats)
    By msburza in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-11-2006, 01:10 PM
  5. random number generation
    By DSpec in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-03-2005, 09:05 AM

Tags for this Thread

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