Basically I have 10 rows and I want to distribute numbers/grades between these rows randomly but each cell has to be smaller or equal to 10, how can I do that wtihout macros?
Basically I have 10 rows and I want to distribute numbers/grades between these rows randomly but each cell has to be smaller or equal to 10, how can I do that wtihout macros?
Does the numbers need to be unique?
If not.
=RANDBETWEEN(1,10)
Copy down.
If yes.
Use two columns.
First column: =RAND()
Second column: = RANK(A1,$A$1:$A$10)
There's very small chance of duplicate with above... to avoid it just add row# divided by large number.
Ex: =Rand()+ROW()/10^9
?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
― Robert A. Heinlein
Thanks for the answer but I think I have to restrict these cells to get randomised again.
Because;
RANDBETWEEN works but everytime I edit a cell, all rows and cells randoms itself again.
Last edited by mlyth; 05-10-2018 at 07:17 AM.
If you need it to be static... easiest method is to use VBA to fill cells with random number.
Ex:
Please Login or Register to view this content.
One other method.
1. Make sure that you turn on Iterative Calculation. Using options.
2. Enter following formula in A1 and copy down.
=IF($F$1<>"",IF(A1="",RANDBETWEEN(1,10),A1),"")
3. Enter any value in F1 and it will generate numbers in column A.
4. Clear F1 and enter value again to reset.
See attached.
Last edited by CK76; 05-10-2018 at 07:44 AM. Reason: Edit: Grammar
How to make random numbers, but use point?
Eg : 10.1, 10.5, 10.4, 9.2, 8.7 (the range is 8 to 11)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks