Thread: Random Numbers
View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.misc
Jim Thomlinson Jim Thomlinson is offline
external usenet poster
 
Posts: 5,939
Default Random Numbers

Rand() * 9 does not give you integers but rather it gives you decimal
numbers. To do it that way you should use

=round(rand() * 9, 0)
--
HTH...

Jim Thomlinson


"Tracy" wrote:


"Ag" wrote in message
...
Use RANDBETWEEN(0,9) as the formula

regards
Anirudh

On Jan 11, 5:01 am, "Tracy" wrote:
Hi how can I put random numbers from 0 to 9 in cells B2:B27?
I tried highlighting the cells and and entering =RAND() and Ctrl+c but I
only get 1's and 0's in the cells.

I am using Office 2003 Excel

Thanks Tracy


Hi RANDBETWEEN(0,9) gives #NAME? however I solved it, I needed to put
=RAND()*9

Thanks Tracy