+ Reply to Thread
Results 1 to 3 of 3

Generate Random numbers where sum = 1

  1. #1
    Registered User
    Join Date
    03-13-2009
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    98

    Generate Random numbers where sum = 1

    Hi, currently I have 3 cells where I would like to generate randomn numbers so that the sum of these cells = 1 (or 100%). Is there a way of doing this. Also currently I have 3 cells, but would like to have a function where I can apply to it X number of cells. Any help will be much appreciated. Thanks

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Generate Random numbers where sum = 1

    in A1:
    =rand()
    in A2:
    =rand()*(1-A1)
    in A3:
    =1-A1-A2

    As you add more numbers you run into issues with how random the numbers are, you will always have a distribution as to where the numbers fall, i.e. you will have many more low numbers than you have high numbers. You need to assign some sort of weighting function/curve to determine the distribution.

    See the discussion in this thread which is very similar to your problem:
    http://www.excelforum.com/excel-gene...in-number.html

  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Generate Random numbers where sum = 1

    Or with a help column you can try this.
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

+ 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. Generate Random Numbers Between 0-9
    By dreicer_Jarr in forum Excel General
    Replies: 11
    Last Post: 01-17-2014, 01:00 AM
  2. [SOLVED] Generate Random Numbers
    By stojko89 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-09-2013, 02:49 AM
  3. generate random numbers
    By fo05kka in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-08-2009, 09:55 PM
  4. Using VBA to generate random numbers
    By matt3542 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-02-2008, 09:15 AM
  5. Generate Random Numbers
    By Rgaherty in forum Excel General
    Replies: 5
    Last Post: 10-30-2007, 04:08 PM

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