+ Reply to Thread
Results 1 to 6 of 6

Random Generator

  1. #1
    Forum Contributor
    Join Date
    05-04-2008
    Posts
    103

    Random Generator

    Not sure if this can be done with Excel but let me explain what I need.

    I have an Excel file with the following columns:

    LastName
    FirstName
    ID
    Grade
    Room
    Testing

    I have to give a day long test for a campus of 2500 students. All of the 10th graders will be testing and only the 9th and 11th graders that sign up. The Seniors will not be testing. So I have to rearrange everyone's schedule. I have a certain amount of rooms set aside for the testers.

    What I would like to do is be able to just generate the 10th graders and the other testers to automatically be put in rooms with no more than 25 a piece.

    For example: If I have rooms 240 - 255, ( I know that is not enough rooms_just an example) I want to be able to click a button and they are assigned randomly.

    I have a user form made that I can look up the students when I need to find them. I am attaching the form with this post. I hope I made sense of what I want. If not I will try to explain better when someone asks. Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    In the first unused column, enter =RAND() and copy down.

    Select the whole thing and sort by that column.

    The first 25 students go in one room, the next 25 in the next, ...
    Last edited by shg; 09-13-2008 at 11:40 AM.

  3. #3
    Forum Contributor
    Join Date
    05-04-2008
    Posts
    103

    Random Generator

    Thank you I see what you are saying. I will give it a try. I was looking for something a little more automatic though.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    You can add a formula in the Room column: =240 + INT( (ROW()-1) / 25 )

    Or, if the room numbers are not sequential, =INDEX(RoomList, INT( (ROW() + 24) /25) )

  5. #5
    Forum Contributor
    Join Date
    05-04-2008
    Posts
    103

    Randon Generator

    Thank you, I will try that.

  6. #6
    Registered User
    Join Date
    12-22-2008
    Location
    jakarta
    Posts
    7

    Question Random number

    I hv box A1..J10 (10x10) and wanna fill with number 1-100 randomly.
    Any idea how to make function
    Thanks b4
    Last edited by vincen1211; 12-22-2008 at 05:29 AM. Reason: wrong...shoud be in new thread

+ 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 Number Generator
    By phattony72 in forum Excel General
    Replies: 2
    Last Post: 02-19-2008, 12:56 PM
  2. Unique Random Number generator
    By David Obeid in forum Excel General
    Replies: 3
    Last Post: 01-28-2008, 11:27 PM
  3. random name generator
    By SRussell in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-25-2007, 06:28 PM
  4. Deal Random Number Generator
    By froggy19 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-02-2007, 05:17 PM
  5. Random Number Generator Question...
    By chriz2000 in forum Excel General
    Replies: 0
    Last Post: 07-21-2007, 09:41 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