Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Excel 2003: random (1 to 24) to get 24 results without repeat?

i need to get 24 results in random order without repeat. "randbetween" wont
entirely work as only once every few hundred calculations will there be no
repeats and i eventually require many thousands of sets of randomised 24
results. please help
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Excel 2003: random (1 to 24) to get 24 results without repeat?

You dont say in what rang so here's a simple method for 24 numbers in the
range 1 - 65536

A1=1
a2=2
Select both cells and tap F5
in the goto box type
a1:a65536
Edit|Fill|Series and click Ok
Column A should fill with the numbers 1 - 65536
in B1 enter
=rand()
Double click the fill handle to fill down to B65536
Select both columns and sort on column B
Use the the top 24 numbers
Tap F9 and sort again for another 24

Mike

"hairysairy2" wrote:

i need to get 24 results in random order without repeat. "randbetween" wont
entirely work as only once every few hundred calculations will there be no
repeats and i eventually require many thousands of sets of randomised 24
results. please help

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Excel 2003: random (1 to 24) to get 24 results without repeat?

Look he

http://www.mcgimpsey.com/excel/udfs/...noreplace.html

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"hairysairy2" wrote in message ...
|i need to get 24 results in random order without repeat. "randbetween" wont
| entirely work as only once every few hundred calculations will there be no
| repeats and i eventually require many thousands of sets of randomised 24
| results. please help


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 168
Default Excel 2003: random (1 to 24) to get 24 results without repeat?

Hi Hairy,

Take a look here.
http://www.mcgimpsey.com/excel/udfs/randint.html

HTH
Martin


"hairysairy2" wrote in message
...
i need to get 24 results in random order without repeat. "randbetween" wont
entirely work as only once every few hundred calculations will there be no
repeats and i eventually require many thousands of sets of randomised 24
results. please help



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 418
Default Excel 2003: random (1 to 24) to get 24 results without repeat?

"hairysairy2" wrote:
i need to get 24 results in random order without repeat. "randbetween" wont
entirely work as only once every few hundred calculations will there be no
repeats and i eventually require many thousands of sets of randomised 24
results. please help


Your subject line states that you want the results from the range of 1 to
24. One approach:

Put =RAND() into A1 and copy down through A24. Then put the following
formula into B1 and copy down through B24:

=rank(A1, $A$1:$A$24)

Of course, you can use any two 24-row ranges anywhere. They do not have to
start in the same row, as my A1:A24 and B1:B24 do. But if you are generating
24 random numbers in a row (e.g. A2:X2), put the =RAND() formulas into a row
of 24 cells instead of a column.

PS: For future postings, be sure to duplicate all important information in
the subject line into the text body of your posting. As you can see from
some responses, some people do not read, internalize or remember the details
in the subject line when they read a posting. Usually, I am one of them ;-).
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
Can Excel pick random numbers from 1-300 and not repeat numbers? Julian Excel Discussion (Misc queries) 1 June 7th 06 07:17 AM
Appending Random Results? Lee Harris Excel Worksheet Functions 8 December 8th 05 05:26 PM
random number results mcmil Excel Worksheet Functions 5 June 6th 05 03:34 AM
Excel 2003 random number generator JJ Excel Discussion (Misc queries) 1 May 4th 05 01:02 PM
If I create a random list in Excel, does it repeat numbers? Kelly Excel Worksheet Functions 2 March 30th 05 04:05 AM


All times are GMT +1. The time now is 09:45 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"