This could be a hard one.A brain twister. To start, I want to give several prizes out, randomly, to winners that are weighted by the size of a group acording to the zipcode. What did I just say??? Uhhh.
So I have 50K names and addresses. I copied the first 3 digits of each zipcode into another column.
19183 -> 191
08054 -> 080
08019 -> 080.. etc Then do a sort on this column and have them in order.
In another column I would like to have a randomly generated number with the highest number wining the prize.... Or however you would think that a random prize selection should work.
But.... There are a number of prizes so I want to take a SUBTOTAL of each of the the zipcodes 3 digit column and distribute more of the prizes in the more densly populated zips.
So if the Zip 080, has the highest subtotal percentage, then I would like to give a larger amount of the larger value prizes there.
For example, if I have prizes that I want to be applied and they would be---> 4 - $5000 / 10 - $1000 / 20 - $500 / 100 - $100 / 200 - $50 / 500 - $25 -- Then $5 to everyone else.
So for the above example I would like the higher values, the $5000 to the $500 (a total of 34 prizes) to the TOP 4 zipcodes, Then the rest just randomly chosen.
It would be great if I could do all this automaticly with a formula... But if I have to, I can assign the top 34 prizes to the top random numbers of each zipcode by hand if that is easier.and have everything else fall in line.
Anyway... I think I am over talking the question....
I know that it sounds easier to just through a prize onto any name, (which I have considered), but I have to show that it is randomly selected.
Any takers???
Any Ideas how to start????
Thanks
So I have 50K names and addresses. I copied the first 3 digits of each zipcode into another column.
19183 -> 191
08054 -> 080
08019 -> 080.. etc Then do a sort on this column and have them in order.
In another column I would like to have a randomly generated number with the highest number wining the prize.... Or however you would think that a random prize selection should work.
But.... There are a number of prizes so I want to take a SUBTOTAL of each of the the zipcodes 3 digit column and distribute more of the prizes in the more densly populated zips.
So if the Zip 080, has the highest subtotal percentage, then I would like to give a larger amount of the larger value prizes there.
For example, if I have prizes that I want to be applied and they would be---> 4 - $5000 / 10 - $1000 / 20 - $500 / 100 - $100 / 200 - $50 / 500 - $25 -- Then $5 to everyone else.
So for the above example I would like the higher values, the $5000 to the $500 (a total of 34 prizes) to the TOP 4 zipcodes, Then the rest just randomly chosen.
It would be great if I could do all this automaticly with a formula... But if I have to, I can assign the top 34 prizes to the top random numbers of each zipcode by hand if that is easier.and have everything else fall in line.
Anyway... I think I am over talking the question....
I know that it sounds easier to just through a prize onto any name, (which I have considered), but I have to show that it is randomly selected.
Any takers???
Any Ideas how to start????
Thanks