Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Random Number Generation

I need to generate a set of randow numbers but need it to not include any
numbers already generated for the range selected? i.e. Want numbers from
1-16 in 16 cells but don't want any duplicates. Any ideas?

Thx.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Random Number Generation

If(?) you mean you want all 16 numbers 1-16 in a random order, with no
duplicates

In B1:B16 enter 1 to 16
In A1:A16 enter formula =RAND()
Press F9 a few times

Sort A1:B16 with col-A as the sort key.

Regards,
Peter T




"navel151" wrote in message
...
I need to generate a set of randow numbers but need it to not include any
numbers already generated for the range selected? i.e. Want numbers from
1-16 in 16 cells but don't want any duplicates. Any ideas?

Thx.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Random Number Generation

Thx, Peter - as always it's something simple that works.

"Peter T" wrote:

If(?) you mean you want all 16 numbers 1-16 in a random order, with no
duplicates

In B1:B16 enter 1 to 16
In A1:A16 enter formula =RAND()
Press F9 a few times

Sort A1:B16 with col-A as the sort key.

Regards,
Peter T




"navel151" wrote in message
...
I need to generate a set of randow numbers but need it to not include any
numbers already generated for the range selected? i.e. Want numbers from
1-16 in 16 cells but don't want any duplicates. Any ideas?

Thx.




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
Random number generation Neil Higgins Excel Programming 4 May 6th 08 06:44 PM
Random Number Generation MB06 Excel Programming 5 February 10th 06 08:42 PM
random number generation DSpec Excel Worksheet Functions 7 October 3rd 05 01:41 PM
Random number generation Stratuser Excel Programming 7 March 15th 05 12:51 PM
random number generation kurtrambis Excel Worksheet Functions 1 November 1st 04 09:23 PM


All times are GMT +1. The time now is 08:28 AM.

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

About Us

"It's about Microsoft Excel"