+ Reply to Thread
Results 1 to 4 of 4

How to ... randomize a 10 digit number with entries that are weighted

  1. #1
    Registered User
    Join Date
    12-29-2015
    Location
    USA
    MS-Off Ver
    current
    Posts
    2

    Smile How to ... randomize a 10 digit number with entries that are weighted

    So I'm trying to make a random number generator using weighted average/percentage numbers so that say 50 comes up 60% more often than 13, etc. Your input in this dilemma is appreciated - I'm out of practice in excel!!

    I have a group of 110 numbers (for ease of distribution). Each number is ranked 1-5; 1 appearing 1 time for every 5 times the #5 ranked number appears ... so I have tried using percentages, and numbers to no avail.

    I can't seem to get excel to recognize that 1 is of lesser importance than 5 and the corresponding number should appear less often. I'm REALLY out of practice in coding, so if a macro is needed I'm going to need HELP!!

    Your help would be most appreciated!!

    Thank you.
    WBates

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: How to ... randomize a 10 digit number with entries that are weighted

    This will select one of your 5 groups when run.

    So the next question is how you choose a number in the group.


    chances of group 1
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    chances of group 2
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    chances of group 3
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    chances of group 4
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    chances of group 5
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    12-29-2015
    Location
    USA
    MS-Off Ver
    current
    Posts
    2

    Re: How to ... randomize a 10 digit number with entries that are weighted

    THank you Mehmectik for your help!

  4. #4
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    606

    Re: How to ... randomize a 10 digit number with entries that are weighted

    Or to put mehmetcik's function as just a regular formula:

    Please Login or Register  to view this content.

+ 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. Color a single digit in a mult-digit number cell
    By Phyllis in forum Excel General
    Replies: 8
    Last Post: 09-30-2022, 04:22 PM
  2. [SOLVED] Formatting to make 2 digit number show up at 3 digit number.
    By cadamhill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2012, 06:58 PM
  3. Replies: 4
    Last Post: 09-12-2011, 12:00 PM
  4. Replies: 1
    Last Post: 09-08-2011, 03:06 PM
  5. Replies: 6
    Last Post: 05-10-2011, 11:30 AM
  6. Replies: 2
    Last Post: 06-17-2010, 08:36 PM
  7. Randomize entries on spreadsheet
    By Seneca01 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-22-2008, 05:46 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