ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how to automatically jumble a list of numbers (https://www.excelbanter.com/excel-discussion-misc-queries/92191-how-automatically-jumble-list-numbers.html)

JULIE

how to automatically jumble a list of numbers
 
i HAVE A LIST OF NUMBERS THAT I NEED TO SCRAMBLE. HOW CAN I DO THAT
AUTOMATICALLY IN EXCEL?

Elkar

how to automatically jumble a list of numbers
 
Insert a new column next to your data.
In this new column, enter the formula:

=RAND()

Copy down as needed.
Now, sort all of your data by this new column.
To re-scramble, just sort the data again.

HTH,
Elkar


"JULIE" wrote:

i HAVE A LIST OF NUMBERS THAT I NEED TO SCRAMBLE. HOW CAN I DO THAT
AUTOMATICALLY IN EXCEL?


Max

how to automatically jumble a list of numbers
 
"Julie" wrote:
i have a list of numbers that i need to scramble.
how can i do that automatically in excel?


One way ..

Assume items* to be scrambled are listed in say, A1:A10
*can be numbers, text, whatever

Put in B1: =INDEX(A:A,RANK(C1,$C$1:$C$10))
Put in C1: =RAND()
Select B1:C1, copy down to C10

B1:B10 will return a random scramble of what's in A1:A10
Just press F9 to recalc & generate a fresh scramble
(Copy n paste special as values elsewhere if required)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


All times are GMT +1. The time now is 08:35 PM.

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