Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Hard to do? randomly

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


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Hard to do? randomly

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.

--
Gary''s Student - gsnu2007g


"farmer" wrote:

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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Hard to do? randomly

Thanks alot , you people are great.
Farmer
"Gary''s Student" wrote in message
...
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.

--
Gary''s Student - gsnu2007g


"farmer" wrote:

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





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default Hard to do? randomly

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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
randomly fill LaDdIe Excel Worksheet Functions 3 December 3rd 06 09:19 PM
randomly selection Shea Excel Discussion (Misc queries) 1 April 4th 06 04:49 AM
This is a hard one... goodfella Excel Discussion (Misc queries) 4 June 17th 05 06:31 PM
Randomly choosing Roger H. Excel Worksheet Functions 3 March 7th 05 09:20 PM
Excel formula randomly changes to hard-code number Ned Excel Discussion (Misc queries) 3 February 14th 05 11:31 PM


All times are GMT +1. The time now is 06:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"