using randombetween to arrive at dollars and cents

B

Bob Arnett

I'm trying to get a series of random monetary numbers that are between $0.01
and $99.99. Using "=randombetween(.01,99.99)" seems to only give the dollars
and makes no cents (pun intended).
The only way I've figured to do this is by using the formula
"=RANDBETWEEN(1,99)/100+RANDBETWEEN(1,99)".
Is there a more elegant way?
 
D

Dana DeLouis

numbers that are between $0.01 and $99.99.
"=RANDBETWEEN(1,99)/100 + RANDBETWEEN(1,99)".

I may be wrong, but it appears that your equation gives a minimum value
of 1 +.01 (=1.01) vs your stated 0.01.

How about a slight change to your equation?

=RANDBETWEEN(1,9999)/100

= = = =
HTH :>)
Dana DeLouis
 
B

Bob Arnett

Thanks, both formulas work perfectly but I do prefer the
"=RANDBETWEEN(1,9999)/100".
 

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

Top