Randomly generated competition draw with priority for players that has preference

(1) INPUT
player# ColumnA
Preference
1 player1 
music
2 player2
3 player3
music
4 player4
music
5 player5
singing
6 player6
7 player7
8 player8
(2) my original requirement was to pair the players randomly, so i used following solution. 
In E1 i have RAND() for 1000 rows (E1000),D1 I have 128 teams
In A1 used this formula
=IF(ROW()-ROW(A$1)+1>$D$1/2,"",RANK(OFFSET($E$1,ROW()-ROW(A$1)+(COLUMN()-COLUMN($A1))*($D$1/2),),$E$1:INDEX($E$1:$E$1000,$D$1)))
copy across to B1 and down as far as you might need.
Assuming you have 128 in D1 then A1:B64 will now include one each of numbers 1 to 128. Subsequent cells will be blank. Change D1 to any even number to regenerate numbers. Note: recalculation of worksheet will re-generate random numbers, hide column E if you
wish
(3) So now i have a new column called PREFERENCE that has preference / interests that players have set.
I want to enhance above formula to give priority to players who have set preferences and do their pairing first with other players who have the same preferences.
If there are no players that have matching pair per perference (e.g singing in above example) then do random match.
If there are no preferences set then simply follow the logic that i have shared above for random pairing.  
Appreciate your help!!

Hi JainPaddy,
Thanks for posting in MSDN forum.
Based on the description, you are design a workbook with formula. I would like move it to
Excel IT Pro Discussions forum since the issue is relative to end-user.
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction
with us.
Thanks for your understanding.
Regards & Fei
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Can you pay for a Mac on the US Apple Online Store with a credit card that has an account in another country.

    Can you buy a Mac on the US Apple Online store with a credit card that has an account in another country.

    probably not as it will know the card isnot registered in the US and may even charge you for postage.  could you not get it from your country? I maybe cheaper (with the exchange rate) and quicker for delivery

  • I have purchased a from within an app. I submit my password for the app, and then my Apple ID.  I then get the following messages "Regrant failure _ please log in with the same user that has bought this app"  and that is followed  by "cant conn with IT _

    I have purchased an item from within the app PocketBible on my iPad.  However when I try to download it I am asked for my app User Name and Password and then my Apple ID and password.  I give both of these.  I then get a message which says Regrant failure - Please log in with the same user that has bought the app.  That is then followed by  Pocket Bible Alert - cannot connect to iTunes Store.
    Anybody got any ideas, both what the 1st alert means and how I get round the problem please.

    I had the same problem. My wife had the PocketBible on her Ipad 2 and she transferred ownership to me. I had to delete the app and reinstall it from the App store(logged in with my apple ID) and its working without a problem. I do not get those error messages when I attempt to Buy/Upgrade or Add/Remove books.

  • Can't access story I Just bought Adobe story but when I press sign in there appears an ST logo with a spinning @bar that has been on my screen for hours 

    I Just bought Adobe story but when I press sign in there appears an ST logo with a spinning @bar that has been on my screen for hours

    Can you please try the following?
    - first make sure that you have flash player up-to-date. You can get the latest version from https://get.adobe.com/flashplayer
      Now log into story wait for some time to see if this resolves your issue or not
    - If it doesn't then try opening private browsing/incognito mode of your browser and try logging into Story from there
      If you are able to login then you should try clearing cache and cookies of your browser

  • Can I share my books on iPad with someone in family that has a different computer and email address

    Can I share my books on iPad with someone in family that has a different computer and email address

    If you got them from iBooks, then no. As far as I know, iBooks are linked to the Apple ID that downloaded them. If you got them via Kindle or the such, the apps may have a sharing function.
    If it's another app, then whatever  the rules of that app says is what works.
    If you're looking for e-books on a budget, check out your local library. Many have e-books you can check out for a period of time, and they either work with an app or are PDF files with some sort of time limit encoding in them

  • I have a online form created with my paid account that has just stopped working.

    I have a online form created with my paid account that has been working for months that just started displaying a message that starts "This form was easily created for FREE with FormsCentral. See how..." The inline frame that it shows up in has also changed to be very small. The form is set to open in FormsCentral and shows the message and inline frame size when I choose preview. What's up?

    Checked when I got back in to work today and everything is working as it should. All of our online forms were screwed up yesterday, but are working this morning. I know this won't help anyone in the future, but just wanted to follow-up.

  • Unique Entities List for Companies that has Ownership

    Hello Everybody,
    Does anyone can help on how to create a Unique List for Companies that has Ownership, it means the same entity owned by 2 different parents?
    If someone had experienced this before, could you please share your knowledge?
    Many thanks in advance, JB

    Hi!
    I did similar task long time ago in script and logic was like this:
    1. make array with owned base entities
    2. make entity loop and check if entity is more than once in the first array then add it to UniqueEntitiesList (before adding check for existence should be done)
    3. then you can use this UniqueEntitiesList anywhere else in your calculations
    maybe there is a way to solve this in a more simple operations

  • Is Apple going to come out with an iPod touch that has built in Wi-fi ?

    Apple should realy come out with an iPod Touch that has built in Wi-Fi. They iPod Touch could be just like a phone! I think everyone would upgrade to it.

    Yeah , but you can only connect to Wi-Fi if you have a router , which in my case , I dont have one . I already have a phone , but it would be nice for it to have built in Wi-Fi so I could use the Internet or Facetime with people ANYWHERE , even if the place I was at DID NOT have a router / Wi-Fi connection . They iPad has built in Wi-Fi , so why not have the iPod Touch have built in Wi-Fi ?(:

  • AirPrint laser printer for home that has "n" wifi capabilities

    Looking for an AirPrint laser printer for home that has "n" wifi capabilities. Was shocked to findout that most lasers don't do "N" wifi or high speed networking yet. Am seriously considering the HP LaserJet Pro P1102w printer, but just found out it is a nightmare to setup. Thought I could run it by USB port off my Timecapsule… Is anyone doing that? Can it do that? Is there a better alternative?

    Hi Scott,
    You can also setup the P1102w without the USB cable. What you need to do is to connect the printer via ad-hoc to your iPad first. With the default network settings the printer has its own SSID that you can select from the WiFi list on your iPad. Then open Safari and go into the EWS - either by the printers IP or host name. There you go to Network - Wireless and make the settings for your infrastructure network.
    However, both Laserjets will need a FW update that you install from a Mac or PC, so you may already use the install steps there to connect your printer to the network.
    Regards,
    Mandy

  • How to fix a problem with my book pro that has a gray screen with a folder with a question mark on it

    does any one know how to fix a problem with my book pro that has a gray screen with a folder with a question mark on it?

    Hello Mokhtary123 and welcome to Apple Support Communities,
    It will help us diagnose your problem to know the exact model, size, year built, RAM installed and OS you're running.
    But basically your system can't find the boot disk. Usually this is a symptom of a dead/dying/corrupted hard drive;
    A flashing question mark or globe appears when you start your Mac - Apple Support
    OS X Recovery
    http://support.apple.com/en-us/HT4718

  • Have a problem with deletting a folder that has lots over 100+ folders in it that are locked, please help

    Have a problem with deletting a folder that has 100+'s folders in it that are locked. Please help.

    Put the folder into the trash - go to the Finder menu and hold down the alt key whilst selecting Empty Trash.
    I've never tried this with a folder full of locked files, but it certainly works with a single locked file.
    Hope that helps!

  • How come my iPad with iCloud doesn't sync with my iPhone 4 that has same apple id and both ios5?

    How come my iPad with iCloud doesn't sync with my iPhone 4 that has same apple id and both ios5?

    Not sure if you just have an issue with your setup or something else.
    I had an issue where my numbers and pages documents were not syncing on my ipad, but were on my iphone. 
    I turned icloud off an on, reset the apps, even deleted them and reinstalled them.  I also checked all of the other icloud setting. 
    Only thing that worked (and it might be just a fluke)  I emailed from my iphone a numbers document to my ipad.  I opened then closed the document and the app.  When I opened it back up it started importing my icloud documents.
    If it is a settings issue then you need to be sure you have icloud setup in your mail settings.  Has to be there and active. 

  • Prompt Group Text value for parameter that has cascading prompts.

    <p>Does anyone know how to get a Prompt Group Text value for parameter that has cascading prompts. C# sample would be great.</p>

    Hi Sateeesh,
             I delete main memory, but does not work. if I display prompt value in list box, it shows as text value, but in 'query prompt selector', it shows as key value. I am using SAP BO 4.0

  • Random generated number along with barcode in smartforms

    Hi All,
    Is it possible to add some random generated number by system to add along with the end of the barcode in smartforms. (what could be the field) If so how it can be done. Tanks in advance
    Regards
    GK

    Hi Tankx man 4 the valuable reply,
         I am able to get that, but what my problem is,
    Eg: In my GR a item with 10 qty, so i made the qty as input and based upon that i am printing 10 labels. for ur ref the code is below"
    menge = TRUNC( is_mseg-menge ).
    DO menge TIMES.
    header-slno = header-slno + 1.
    APPEND header TO itab.
    the complete program is like as follows;
    menge = TRUNC( is_mseg-menge ).
    DO menge TIMES.
    header-slno = header-slno + 1.
    APPEND header TO itab.
    CALL FUNCTION 'QF05_RANDOM_INTEGER'
    EXPORTING
    RAN_INT_MAX   = '999999999'
    RAN_INT_MIN   = '100000000'
    IMPORTING
    RAN_INT       = RANINT
    EXCEPTIONS
    INVALID_INPUT = 1
    OTHERS        = 2.
    IF SY-SUBRC EQ 0.
    ENDIF.
    WRITE :/ RANINT.
    ENDDO.
    but in my barcode all the label has the same random number, can u say how to solve this.

  • Looking for an docking station for DV9205us that has power pass-thru

    I have an HP DV9205us and am looking for a docking station that has a power pass-thru.  The power plug on my latop doen't always power up the laptop and this has gotten on my nerves.  Is the ES631AA#ABA the only docking station that works with the DV9205us

    Thanks for the link.
    Hadn't seen that review, but it matches what I conclude about that particular model - there's still lots of connecting & disconnecting to do. It has only one USB port docked, and another one sitting up top.  I have many items I'll be attaching via USB, such as Wacom, backup drive, external drive for photos, mouse.  And would prefer a Powered version so I don't have to connect the power cord each time either.  And if you notice that video, he shpws his desktop consisting on nothing but a keyboard & a monitor.  So with the lid closed on the MBA, how's he move the cursor around?  Missing a mouse there. (Yes - he could have a wirelesss mouse, but personally, I find a wired mouse much better - but he has NONE.
    Hoping to find someone who has actually used one.
    From my research, it seems the Landing Zone MAY do what I want, but I can't get answers from them to questions.  They have units for 2012 - 2013 MBA's, but I don't see anything on their site about the 2014 model I have.
    And there's a few other brands out there - but seeking real life experiences.

Maybe you are looking for