Hard to do? randomly

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
 
G

Gary''s Student

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.
 
S

start

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.
 
B

Bernd P

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
sum character 6
indirect function 1
Conditional formatting a big size 4
copying 2
COUNTIF - Summing non-numerical items in cells 5
Custom cell format 4
creating a macro 1

Top