ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Random Assignment of Numbers (https://www.excelbanter.com/excel-worksheet-functions/18006-random-assignment-numbers.html)

itse

Random Assignment of Numbers
 
How can I randomly assign a range of numbers to a range of cells without the
numbers repeating?

Bernd Plumhoff

See www.sulprobil.com

HTH,
Bernd

Max

Another way to play with ..

Assuming the list of numbers* to be assigned is in A1:A10
*or whatever item needs to be assigned

Put in say, E1: =RAND()
Copy down to E10

Put in B1:
=INDEX(A:A,MATCH(SMALL(E:E,ROWS($A$1:A1)),E:E,0))

Copy B1 down to B10

B1:B10 will return a non-repeating randomized shuffle
of the 10 numbers (or items) in A1:A10

Press / tap F9 to recalc / re-generate a fresh selection

Just freeze the results elsewhere
with a copy paste special values ok

Adapt to suit ..
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"itse" wrote in message
...
How can I randomly assign a range of numbers to a range of cells without

the
numbers repeating?





All times are GMT +1. The time now is 11:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com