SOLVED

Formula for choosing a winner (weighted)

%3CLINGO-SUB%20id%3D%22lingo-sub-1845820%22%20slang%3D%22en-US%22%3EFormula%20for%20choosing%20a%20winner%20(weighted)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1845820%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20-%20I%20have%20tasked%20with%20choosing%20a%20winner%20for%20a%20contest%20that%20was%20run%20by%20my%20company.%20A%20contestant%20has%20increased%20odds%20of%20winning%20based%20on%20the%20employees%20sales%20total.%20ie%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%241%2C000%20raised%20equals%20one%20entry%3C%2FLI%3E%0A%3CLI%3E%242%2C500%20raised%20equals%20two%20entries%3C%2FLI%3E%0A%3CLI%3Efor%20every%20additional%20%242%2C500%20raised%2C%201%20additional%20entry%20is%20given%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EDoes%20anyone%20have%20any%20formula%20suggestions%20to%20serve%20as%20a%20solution%20to%20randomly%20picking%20a%20winner%20based%20on%20the%20above%20criteria%3F%20Thank%20you%20in%20advanced!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1845820%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1845974%22%20slang%3D%22de-DE%22%3ESubject%3A%20Formula%20for%20choosing%20a%20winner%20(weighted)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1845974%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F505572%22%20target%3D%22_blank%22%3E%40jberlin%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.random.org%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.random.org%2F%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3EAlternative%20info%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.random.org%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fexcel%2Frandom-selection-for-raffle-winners%2Fm-p%2F1748954%23M77039%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHope%20I%20was%20able%20to%20help%20you.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENikolino%3C%2FP%3E%0A%3CP%3EI%20know%20I%20don't%20know%20anything%20(Socrates)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E*%20Kindly%20Mark%20and%20Vote%20this%20reply%20if%20it%20helps%20please%2C%20as%20it%20will%20be%20beneficial%20to%20more%20community%20members%20reading%20here%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1846116%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20for%20choosing%20a%20winner%20(weighted)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1846116%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F505572%22%20target%3D%22_blank%22%3E%40jberlin%3C%2FA%3E%26nbsp%3BI%20am%20confident%20that%20somewhere%20in%20the%20reference%20given%20by%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40Nikolino%3C%2FA%3E%26nbsp%3B%20is%20a%20solution%20but%20I%20couldn't%20tell%20you%20which%20one.%26nbsp%3B%20That%20said%2C%20I%20assume%20you%20have%20a%20spreadsheet%20with%20everyone's%20sales%20numbers%20and%20would%20suggest%20you%20create%20a%20couple%20of%20helper%20columns%20to%20help%20with%20transparency.%26nbsp%3B%20The%201st%20would%20be%20%23%20entries%20and%20the%20second%20is%20cumulative%20entries.%26nbsp%3B%20The%20equation%20for%20the%26nbsp%3B%40%23%20entries%20would%20be%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3D%201%20%2B%20INT(%5BSALES%5D%2F2500)%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3Ethe%20second%20column%20would%20be%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3D%20%5BPrev%20Row%5D%20%2B%20%5BNum%20Entries%5D%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3ESo%20if%20the%20first%20helper%20column%20is%20in%20column%20D%20then%20E2%20would%20be%20%3D%20E1%20%2B%20D2%20and%20fill%20down%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENow%20for%20actually%20finding%20the%20winner%20you%20need%20to%20Generate%20a%20Random%20number.%26nbsp%3B%20Usually%20a%20RAND()%20function%20like%20excel%20creates%20a%20number%20between%200%20and%201%20so%20multiply%20by%20the%20total%20number%20of%20entries%20(last%20or%20max%20value%20in%20the%20cumulative%20column)%20then%20scroll%20down%20to%20the%20winner%20or%20use%20VLOOKUP()%20or%20MATCH()%20to%20find%20the%20winner.%3C%2FP%3E%0A%3CP%3EThat%20said%2C%20how%20you%20find%20the%20RAND()%20and%20document%20it%20is%20important%20for%20transparency.%26nbsp%3B%20When%20you%20are%20ready%20to%20'draw'%20the%20winner%20you%20may%20want%20to%20have%20it%20witnessed%20or%20video%20taped%20or%20something.%26nbsp%3B%20If%20you%20just%20put%20the%20formula%20%3DRAND()%20*%20MAX(E%3AE)%20it%20will%20give%20you%20that%20value%20BUT%20it%20will%20keep%20changing%20every%20time%20you%20change%20ANY%20other%20cell%20and%20hence%20you%20need%20to%20somehow%20decide%20how%20to%20define%20which%20time%20'COUNTS'%20for%20the%20real%20drawing.%3C%2FP%3E%0A%3CP%3EYou%20could%20also%20write%20a%20simple%20Macro%20to%20generate%20a%20random%20number%20that%20could%20be%20triggered%2C%20but%20you%20should%20still%20document%20it%20since%20you%20could%20generate%20it%20as%20many%20times%20as%20you%20want.%3C%2FP%3E%0A%3CP%3EHope%20this%20was%20of%20some%20help%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1846362%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20for%20choosing%20a%20winner%20(weighted)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1846362%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F570951%22%20target%3D%22_blank%22%3E%40mtarler%3C%2FA%3E%26nbsp%3B%26nbsp%3BI%20am%20so%20grateful%20for%20your%20prompt%20reply%20and%20assistance%20on%20this%20project%2C%20thank%20you!!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20terms%20of%20assigning%20the%20number%20of%20entries%2C%20the%20%3D1%2BINT(Sales%20Total%2F2500)%20formula%20works%20wonderfully!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThough%20with%20my%20current%20use%20of%20the%20RAND%20formula%2C%20I'm%20not%20sure%20if%20if%20I'm%20capturing%20the%20the%20use%20of%20the%20number%20of%20entries%20column%2F%20if%20I%20am%20giving%20those%20with%20a%20higher%20number%20in%20that%20column%2C%20a%20higher%20likelihood%20to%20win%20the%20challenge.%20This%20is%20what%20I%20currently%20have%20%3DINT(RAND()*Total%20Cumulative).%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20have%20attached%20a%20sample%20document.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank%20you%20in%20advanced!!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hello - I have tasked with choosing a winner for a contest that was run by my company. A contestant has increased odds of winning based on the employees sales total. ie:

  • $1,000 raised equals one entry
  • $2,500 raised equals two entries
  • for every additional $2,500 raised, 1 additional entry is given

Does anyone have any formula suggestions to serve as a solution to randomly picking a winner based on the above criteria? Thank you in advanced! 

5 Replies
Highlighted

@jberlin 

 

https://www.random.org/

 

Alternative info:

https://techcommunity.microsoft.com/t5/excel/random-selection-for-raffle-winners/m-p/1748954#M77039

 

Hope I was able to help you.

 

Nikolino

I know I don't know anything (Socrates)

 

* Kindly Mark and Vote this reply if it helps please, as it will be beneficial to more Community members reading here

 

 

Highlighted

@jberlin I am confident that somewhere in the reference given by @Nikolino  is a solution but I couldn't tell you which one.  That said, I assume you have a spreadsheet with everyone's sales numbers and would suggest you create a couple of helper columns to help with transparency.  The 1st would be # entries and the second is cumulative entries.  The equation for the @# entries would be:

= 1 + INT([SALES]/2500)

the second column would be 

= [Prev Row] + [Num Entries]

So if the first helper column is in column D then E2 would be = E1 + D2 and fill down 

Now for actually finding the winner you need to Generate a Random number.  Usually a RAND() function like excel creates a number between 0 and 1 so multiply by the total number of entries (last or max value in the cumulative column) then scroll down to the winner or use VLOOKUP() or MATCH() to find the winner.

That said, how you find the RAND() and document it is important for transparency.  When you are ready to 'draw' the winner you may want to have it witnessed or video taped or something.  If you just put the formula =RAND() * MAX(E:E) it will give you that value BUT it will keep changing every time you change ANY other cell and hence you need to somehow decide how to define which time 'COUNTS' for the real drawing.

You could also write a simple Macro to generate a random number that could be triggered, but you should still document it since you could generate it as many times as you want.

Hope this was of some help

 

 

Highlighted

@mtarler  I am so grateful for your prompt reply and assistance on this project, thank you!!

 

In terms of assigning the number of entries, the =1+INT(Sales Total/2500) formula works wonderfully!

 

Though with my current use of the RAND formula, I'm not sure if if I'm capturing the the use of the number of entries column/ if I am giving those with a higher number in that column, a higher likelihood to win the challenge. This is what I currently have =INT(RAND()*Total Cumulative).  

 

I have attached a sample document. 

 

Thank you in advanced!! 

Highlighted
Best Response confirmed by jberlin (Occasional Contributor)
Solution

@jberlin OK I tweaked the equation to be =INT(RAND()*D89)+1 because the RAND() function is >=0 but <1 so taking the INT rounds down but the entry numbers start at 1 and since it never equals 1 the 'last' entry would never get selected, so I just +1 to shift it accordingly.

So that is the winning entry # (think off cumulative entry column as showing which ticket number(s) each person was given)

So I added a XLOOKUP function to find who owns that 'ticket #'

Now I also added a *I2 to the RAND() function so now the winning draw doesn't happen until you change I2 to a value of 1.  So you can open the sheet and play with it and make sure it works and what not.  Then when you are ready for the 'official drawing' you set I2 to 0 and then get the video/witnesses all ready, change it to 1 and kaboom, it draws your winner.

hope that helps.

 

Highlighted

@mtarler wonderful!! Thank you SO much!!