Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 577
Default Help with randomly displaying values from a list.

I have a list of 144 names. In a separate column, I want to break that list
up into groups of 4. Obviously, I know how to do that. But how do you
randomly select those names without duplicates?
For instance:
Names in Cells N7:N150.
Starting in cell C7 through C150, I want to randomly list those names.

Any help would be appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Help with randomly displaying values from a list.

Add a new column a put in thed new column

=RAND() and copy down colun

then highlight new column and copy and pastespecial value only. Next sort
on new column.

"Scott" wrote:

I have a list of 144 names. In a separate column, I want to break that list
up into groups of 4. Obviously, I know how to do that. But how do you
randomly select those names without duplicates?
For instance:
Names in Cells N7:N150.
Starting in cell C7 through C150, I want to randomly list those names.

Any help would be appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,059
Default Help with randomly displaying values from a list.

"Scott" wrote:
I have a list of 144 names. [....] But how do you
randomly select those names without duplicates?
For instance: Names in Cells N7:N150.
Starting in cell C7 through C150, I want to randomly list those names.


Many ways to do this. One way....

Put =RAND() into a column of 144 cells, say X1:X144. Then, starting in C7,
put the following fomula and copy down:

=INDEX($N$7:$N$150,RANK(X1,$X$1:$X$144))

Note that the first X1 is a relative reference; it changes as you copy the
formula down. Everything else is absolute references.

Tweak....

Unfortunately, RAND is a volatile function. There are many ways to avoid
the problems that creates. One way: actually put the =RAND() formulas into
Y1:Y144, then copy-and-paste-special-value into X1:X144. You can hide
Y1:Y144 as well as X1:X144.


----- original message -----

"Scott" wrote in message
...
I have a list of 144 names. In a separate column, I want to break that
list
up into groups of 4. Obviously, I know how to do that. But how do you
randomly select those names without duplicates?
For instance:
Names in Cells N7:N150.
Starting in cell C7 through C150, I want to randomly list those names.

Any help would be appreciated.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,059
Default Help with randomly displaying values from a list.

PS: I forgot to mention....

I wrote:
put the =RAND() formulas into Y1:Y144, then copy-and-paste-special-value
into X1:X144


Of course, you could put =RAND() into X1:X144 and
copy-and-paste-special-valule back to X1:X144, overwriting the formula with
constants.

The advantage of putting the formulas into a different range is that it
makes it easy to generate a new random list. The disadvantage is that the
volatile RAND expressions continue to be recalculated with every edit
anywhere in the workbook :-(. That can become costly as number of such
formulas increases. I don't think that would be a problem with just 144.


----- original message -----

"JoeU2004" wrote in message
...
"Scott" wrote:
I have a list of 144 names. [....] But how do you
randomly select those names without duplicates?
For instance: Names in Cells N7:N150.
Starting in cell C7 through C150, I want to randomly list those names.


Many ways to do this. One way....

Put =RAND() into a column of 144 cells, say X1:X144. Then, starting in
C7, put the following fomula and copy down:

=INDEX($N$7:$N$150,RANK(X1,$X$1:$X$144))

Note that the first X1 is a relative reference; it changes as you copy the
formula down. Everything else is absolute references.

Tweak....

Unfortunately, RAND is a volatile function. There are many ways to avoid
the problems that creates. One way: actually put the =RAND() formulas
into Y1:Y144, then copy-and-paste-special-value into X1:X144. You can
hide Y1:Y144 as well as X1:X144.


----- original message -----

"Scott" wrote in message
...
I have a list of 144 names. In a separate column, I want to break that
list
up into groups of 4. Obviously, I know how to do that. But how do you
randomly select those names without duplicates?
For instance:
Names in Cells N7:N150.
Starting in cell C7 through C150, I want to randomly list those names.

Any help would be appreciated.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying a list of values MFK Excel Discussion (Misc queries) 2 September 26th 08 08:56 PM
Can I randomly select values from an array with removal? bvc Excel Discussion (Misc queries) 2 February 17th 08 10:49 PM
Hi--how do I scramble a list randomly? lmcshelp Excel Worksheet Functions 1 November 1st 06 06:34 AM
Randomly Generated List / Macro carl Excel Worksheet Functions 3 April 9th 06 01:14 AM
How to randomly select from a list with condition kathyxyz Excel Worksheet Functions 5 July 27th 05 04:19 PM


All times are GMT +1. The time now is 07:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"