+ Reply to Thread
Results 1 to 2 of 2

Help, regarding random number, with exclusion and without repeat.

  1. #1
    Registered User
    Join Date
    05-27-2017
    Location
    Malaysia
    MS-Off Ver
    2007
    Posts
    1

    Unhappy Help, regarding random number, with exclusion and without repeat.

    Hi guys, im new to excel.

    I ve been trying to create a roster maker that randomly picks staff and into stations.
    There are few rules that need to be fulfilled...
    There are 15 stations, 15 staff. but only minimum 6 prioritized stations need to be filled per day(allowing 7 to be away).
    Some station are also restricted to certain staff of certain experience or health limitation.

    Ive made use of

    what would be the best recommended method to do this?
    Ive been using

    =IF((S2-T2)>9,(SMALL(IF(V2={1;2;3;4;5;6;7;8;9;10;11;12;13;14;15},"",IF(W2={1;2;3;4;5;6;7;8;9;10;11;12;13;14;15},"",IF(X2={1;2;3;4;5;6;7;8;9;10;11;12;13;14;15},"",IF(Y2={1;2;3;4;5;6;7;8;9;10;11;12;13;14;15},"",IF(Z2={1;2;3;4;5;6;7;8;9;10;11;12;13;14;15},"",IF(AA2={1;2;3;4;5;6;7;8;9;10;11;12;13;14;15},"",IF(I2={1;2;3;4;5;6;7;8;9;10;11;12;13;14;15},"",IF(J2={1;2;3;4;5;6;7;8;9;10;11;12;13;14;15},"",IF(N2={1;2;3;4;5;6;7;8;9;10;11;12;13;14;15},"",IF(F2={1;2;3;4;5;6;7;8;9;10;11;12;13;14;15},"",IF(E2={1;2;3;4;5;6;7;8;9;10;11;12;13;14;15},"",IF(H2={1;2;3;4;5;6;7;8;9;10;11;12;13;14;15},"",IF(K2={1;2;3;4;5;6;7;8;9;10;11;12;13;14;15},"",IF(C2={1;2;3;4;5;6;7;8;9;10;11;12;13;14;15},"",IF(D2={1;2;3;4;5;6;7;8;9;10;11;12;13;14;15},"",{1;2;3;4;5;6;7;8;9;10;11;12;13;14;15}))))))))))))))),RANDBETWEEN(1,(S2-(9+T2))))),0)

    It was getting a lil messy. was wondering whats the best way to to this.

    Many thanks in advance.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Help, regarding random number, with exclusion and without repeat.

    In my opinion there is no generally easy way to obtain your required result just with formulas
    To make it properly you shall think rather about some VBA code.

    Particular solution would depend on exact requirements and limitations.

    So consider posting an attachment with sample data.




    To attach a sample workbook:
    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Best Regards,

    Kaper

+ 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 numbers without repeat in each column and row
    By rick9 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2016, 12:10 PM
  2. Random numbers without repeat in each column and row
    By rick9 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2016, 03:08 PM
  3. How to generate random non-repeat number for a range?
    By niuyuer in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-16-2016, 03:13 PM
  4. Generate Random Number Wihout Repeat In One Cell
    By Kumara_faith in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-02-2015, 08:13 AM
  5. random number from 0 to 9 without repeat and then make 35 time
    By moh_abbasy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-16-2013, 02:19 PM
  6. Replies: 5
    Last Post: 06-21-2013, 10:40 AM
  7. Excel 2007 : Repeat random numbers
    By deastham2000 in forum Excel General
    Replies: 2
    Last Post: 11-21-2011, 10:58 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