+ Reply to Thread
Results 1 to 5 of 5

Excel Formula

  1. #1
    Registered User
    Join Date
    12-10-2006
    Posts
    1

    Question Excel Formula

    I am trying to take a list of 18 people in a column, and create a random list of 5 and 4 without repeating names within the smaller lists. I've tried with a few formulas I found online, but they don't guarantee no duplications, and when I try to F9 it to recalculate, it changes all values in the lists I've just created. Please help!!

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by larkyfarken
    I am trying to take a list of 18 people in a column, and create a random list of 5 and 4 without repeating names within the smaller lists. I've tried with a few formulas I found online, but they don't guarantee no duplications, and when I try to F9 it to recalculate, it changes all values in the lists I've just created. Please help!!
    Hi,
    try the attached

    Amend the numbers 1 to 18 in G8 onwards to any desired values

    ---
    Attached Files Attached Files
    Si fractum non sit, noli id reficere.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Quote Originally Posted by larkyfarken
    I am trying to take a list of 18 people in a column, and create a random list of 5 and 4 without repeating names within the smaller lists. I've tried with a few formulas I found online, but they don't guarantee no duplications, and when I try to F9 it to recalculate, it changes all values in the lists I've just created. Please help!!
    If you want to create a "static" non-repeating list perhaps try the MRAND function from the Morefunc add-in, e.g. if you have your 18 names in A1:A18
    use the formula

    =INDEX(A1:A18,MRAND(4,1,ROWS(A1:A18),TRUE))

    confirmed with CTRL+SHIFT+ENTER

    You can get Morefunc ad-in from here

    http://xcell05.free.fr/

  4. #4
    Registered User
    Join Date
    11-30-2006
    Location
    UK
    MS-Off Ver
    Microsoft Office XP
    Posts
    61

    Talking

    Thank you for posting this link

    Jason

  5. #5
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195

    Hello,

    this is larkyfarken. I saw your reply to my post. I downloaded your worksheet and took a look at it. I tried to understand the math so that I could set it up in one worksheet, and get the results in another worksheet. However, I'm having trouble following the math behind the results in order to get the desired outcome. Could you please help?? Thanks.

    Ben
    Hi,

    The formula effectively 'rank's the ivert range (1 to 100) depending on the count of items found compared to the random value in the row of the rvert range.

    It means that it is easy to randomly shuffle a list of numbers or names (replace 1-100 by 'George, Ted, Alice etc).

    To set this in another sheet you would need to amend the formula at B2 to F4 from =J8 to =Shuffle!J8 etc.

    You will also need a button or macro to re-shuffle your list on the other sheet, as a Macro, set (say) a shortcut key of CTRL/Shift/S and a code for that of
    Please Login or Register  to view this content.
    Let me know how you go.
    ---

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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