Hard to do? randomly

  • Thread starter Thread starter farmer
  • Start date Start date
F

farmer

The number i put in cell A31 must be ditributed randomly from cell A1 to
A30 so the summary of A1 to A30 must be like A31. Is this possible?

Farmer
 
Very easy:

In B1 thru B30 enter:
=RAND()

In B31 enter:
=SUM(B1:B30)

In A31 put your value

In A1 enter:
=$A$31*B1/$B$31 and copy down thru A30

A1 thru A30 will consist of random values which sum to the value in A 31.
 
Thanks alot , you people are great.
Farmer
Gary''s Student said:
Very easy:

In B1 thru B30 enter:
=RAND()

In B31 enter:
=SUM(B1:B30)

In A31 put your value

In A1 enter:
=$A$31*B1/$B$31 and copy down thru A30

A1 thru A30 will consist of random values which sum to the value in A 31.
 
Hello,

That's one possible solution. The distribution will almost look like
the green curve shown at:
http://www.sulprobil.com/html/randsum1.html
The maximum (meaning the most likely values) will be at A31/30.

If you like to test other possible distributions as well:

Select A1:A30 and array-enter
=A31*randsum1(1)
or
=A31*randsum1(3)

Regards,
Bernd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

count 3
indirect function 1
Question about an equation 4
SUMIF boolean? 12
'Flash' random numbers 6
Custom cell format 3
Mutiply in a range of cells ? 1
Sort Function with a Twist 1

Back
Top