+ Reply to Thread
Results 1 to 5 of 5

Generate random winner based on weighted score

  1. #1
    Registered User
    Join Date
    10-09-2014
    Location
    UK
    MS-Off Ver
    11
    Posts
    3

    Question Generate random winner based on weighted score

    Hi,

    We run a monthly competition for our employees based on sales of products. To give everyone a chance to win, they get a point for every item they sell. At the end of the month, we add all the points up, write each person's name down once for each point, randomise the sorting of names in the list, then use another random function to generate a winning number based on the range of the numbers to give a the winning number. It works.

    So say we sold 100 items, a person selling 50 items would have a 50% chance of winning something, the person selling 1 item would have a 1% chance.

    What I want to do is to create a much simpler way of processing this.

    I want to type in the number of units they've sold into a list (see attachment RandomChance.xlsx), this will then show this a percentage of the total sold.

    What I'm struggling with is how to produce a weighted random draw with each person having a percentage chance of winning based on their percentage of total units sold. Anyone could win, but your chance of winning is governed by the percentage of the total sales.

    Anyone have an idea on how to achieve this?


    In a final version, I'll probably use some vba to show a rapid change of numbers to give the illusion of a 'countdown calculation' but this will be a simple recalculation say 9 times to give the 10th random iteration as the winning number.

    Thanks in anticipation
    Last edited by SimonFinch; 10-09-2014 at 03:00 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,930

    Re: Generate random winner based on weighted score

    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 use the paperclip icon to open the upload window.

    View Pic
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    10-09-2014
    Location
    UK
    MS-Off Ver
    11
    Posts
    3

    Re: Generate random winner based on weighted score

    Forgot to attach file Attachment 350786, sorry.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,930

    Re: Generate random winner based on weighted score

    No need for VBA.
    If you SUM your chances (column D) you can use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then you can return name as:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Rest on the table is check to test that weighted percentage works on over 10.000 numbers.

    Proofe is in column F based on COUNTIF (column E) of each name in column H.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-09-2014
    Location
    UK
    MS-Off Ver
    11
    Posts
    3

    Re: Generate random winner based on weighted score

    zbor,

    That's great, thanks so much!

    Cheers,

+ 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. Creating weighted Composite score & applying cut score
    By Tunjisangoleye in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-26-2014, 05:52 PM
  2. Choosing a winner based on score
    By lou_1977 in forum Excel General
    Replies: 2
    Last Post: 06-14-2012, 04:22 PM
  3. Replies: 1
    Last Post: 03-26-2012, 05:28 PM
  4. Generate random # of days based on other criteria
    By Georgia Golfer in forum Excel General
    Replies: 3
    Last Post: 09-17-2010, 02:00 PM
  5. Random Winner Draw Formula Help
    By koba in forum Excel General
    Replies: 1
    Last Post: 09-18-2006, 11:50 PM

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