Excel help - random...
 

MegaSack DRAW - This year's winner is user - rgwb
We will be in touch

[Closed] Excel help - random number generator

4 Posts
5 Users
0 Reactions
56 Views
Posts: 0
Free Member
Topic starter
 

Anyone know of a quick way of doing this? I want to populate a whole bunch of cells with random numbers between say 1000 and 20000 and have the numbers formatted as currency.

Help appreciated - kudos points for knowledge available.


 
Posted : 11/01/2010 9:26 pm
Posts: 0
Full Member
 

=RANDBETWEEN(1000, 20000)

EDIT: and just format the cells as currently.


 
Posted : 11/01/2010 9:27 pm
Posts: 25875
Full Member
 

dunno about a fully automatic process but I thought excel had a random no generator built in
(or else something like this definitely could do what you want [url= http://www.random.org/ ]http://www.random.org/[/url])

as long as the cells are in a single column or contiguous, shouldn't be hard to set as currency


 
Posted : 11/01/2010 9:31 pm
Posts: 6332
Free Member
 

what Jesus said

or if you want non-integers then

= 1000 + RAND()*19000

If you don't want them dynamic then just copy them all and paste as values


 
Posted : 11/01/2010 9:38 pm
 Ewan
Posts: 4356
Free Member
 

The random number generator in excel is not very 'random' if you need it for something that actually requires random numbers (e.g. monte carlo function).

Better off getting a Geiger counter and using background radiation to get true randomness.*

*Better, but possibly not easier....


 
Posted : 11/01/2010 11:21 pm