Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
B.J
 
Posts: n/a
Default How do I set up a random Colum 1-55 without repeating a number


  #2   Report Post  
Max
 
Posts: n/a
Default How do I set up a random Colum 1-55 without repeating a number

From your subject line:
How do I set up a random Colum 1-55 without repeating a number
(Note that you should always write the full query within the message area)

One interp & way to set it up ..

Put in
A1: =ROW(A1)
B1: =INDEX(A:A,RANK(C1,$C$1:$C$55))
C1: =RAND()

Select A1:C1, copy down to C55

B1:B55 will return a random shuffle of the numbers 1 - 55 from col A
(Replace the formula in A1:A55 with whatever 55 items that's to be shuffled)

Press F9 to regenerate afresh
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"B.J" wrote in message
...



  #3   Report Post  
B.J
 
Posts: n/a
Default How do I set up a random Colum 1-55 without repeating a number

Hi Max
What I want is to show 1-55 in a colum and when i hit F9 the whole colum
changes.
Brian

"Max" wrote:

From your subject line:
How do I set up a random Colum 1-55 without repeating a number
(Note that you should always write the full query within the message area)

One interp & way to set it up ..

Put in
A1: =ROW(A1)
B1: =INDEX(A:A,RANK(C1,$C$1:$C$55))
C1: =RAND()

Select A1:C1, copy down to C55

B1:B55 will return a random shuffle of the numbers 1 - 55 from col A
(Replace the formula in A1:A55 with whatever 55 items that's to be shuffled)

Press F9 to regenerate afresh
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"B.J" wrote in message
...




  #4   Report Post  
Max
 
Posts: n/a
Default How do I set up a random Colum 1-55 without repeating a number

"B.J" wrote:
.. What I want is to show 1-55 in a colum
and when i hit F9 the whole colum changes.


But isn't that what col B (B1:B55)
in the suggested set-up delivers ?

(You could always hide away cols A & C)
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--


  #5   Report Post  
B.J
 
Posts: n/a
Default How do I set up a random Colum 1-55 without repeating a number

No B shows individual numbers also it repeats numbers befor the whole list is
shown.

"Max" wrote:

"B.J" wrote:
.. What I want is to show 1-55 in a colum
and when i hit F9 the whole colum changes.


But isn't that what col B (B1:B55)
in the suggested set-up delivers ?

(You could always hide away cols A & C)
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--





  #6   Report Post  
Max
 
Posts: n/a
Default How do I set up a random Colum 1-55 without repeating a number

"B.J" wrote
No B shows individual numbers
also it repeats numbers befor the whole list is shown.


Guess I'm not sure what happened over there <g

Here's a sample implementation to play with:
http://cjoint.com/?lohRA4AVqG
Set_up_a_random_col_1-55_without_repeating_a_number_BJ_misc.xls

The randomized numbers 1 - 55 within B1:B55 **do not repeat**

**Prove this easily for yourself by copying B1:B55, then paste special as
"values" in another col, and then sort that col in ascending order.

Pressing F9 will produce another random shuffle of the numbers
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--


  #7   Report Post  
B.J
 
Posts: n/a
Default How do I set up a random Colum 1-55 without repeating a number

Thanks max a great help
Many Thanks
Brian
"Max" wrote:

"B.J" wrote
No B shows individual numbers
also it repeats numbers befor the whole list is shown.


Guess I'm not sure what happened over there <g

Here's a sample implementation to play with:
http://cjoint.com/?lohRA4AVqG
Set_up_a_random_col_1-55_without_repeating_a_number_BJ_misc.xls

The randomized numbers 1 - 55 within B1:B55 **do not repeat**

**Prove this easily for yourself by copying B1:B55, then paste special as
"values" in another col, and then sort that col in ascending order.

Pressing F9 will produce another random shuffle of the numbers
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--



  #8   Report Post  
Max
 
Posts: n/a
Default How do I set up a random Colum 1-55 without repeating a number

You're welcome, Brian !
--
Rgds
Max
xl 97
---
Singapore, GMT+8
xdemechanik
http://savefile.com/projects/236895
--
"B.J" wrote in message
...
Thanks max a great help
Many Thanks
Brian



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
Seed numbers for random number generation, uniform distribution darebo Excel Discussion (Misc queries) 3 April 21st 23 09:02 PM
random number generation DSpec Excel Worksheet Functions 7 October 3rd 05 01:41 PM
GENERATE RANDOM NUMBERS BUT EXCLUDE A NUMBER IN THE SEQUENCE Tracker Excel Discussion (Misc queries) 6 August 5th 05 02:49 AM
generating random number as template Jemm Excel Discussion (Misc queries) 2 July 6th 05 01:47 PM
Random number generator Philippe L. Balmanno Excel Worksheet Functions 4 December 17th 04 07:42 AM


All times are GMT +1. The time now is 06:38 AM.

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"