Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
henry
 
Posts: n/a
Default i need 40 random numbers in 40 cell with no matches

can someone help me with this in excel 2003 st. ed
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

one way:

http://www.mcgimpsey.com/excel/randint.html

In article ,
"henry" wrote:

can someone help me with this in excel 2003 st. ed

  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

If you with no matches mean no duplicates and 40 numbers only it won' really
be random? You can use a simplistic approach and put let's say 1000 from
1-1000 in A1:A1000, then in B1 put =RAND(), copy down to B1000, now select
both columns and sort by column B, then select the first 40 numbers in A and
copy somewhere else.



Regards,

Peo Sjoblom


"henry" wrote:

can someone help me with this in excel 2003 st. ed

  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

or you could turn iteration on and put this formula in B1 and copy down to
B40

=IF((B10)*(COUNTIF($B$1:B1,B1)=1),B1,(INT(RAND()* 40+1)))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Peo Sjoblom" wrote in message
...
If you with no matches mean no duplicates and 40 numbers only it won'

really
be random? You can use a simplistic approach and put let's say 1000 from
1-1000 in A1:A1000, then in B1 put =RAND(), copy down to B1000, now select
both columns and sort by column B, then select the first 40 numbers in A

and
copy somewhere else.



Regards,

Peo Sjoblom


"henry" wrote:

can someone help me with this in excel 2003 st. ed



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
Averaging Numbers when 2 numbers in one cell Ourania Excel Worksheet Functions 8 January 12th 05 06:40 PM
Validating random numbers plsauditor Excel Worksheet Functions 2 January 11th 05 11:12 PM
Paste rows of numbers from Word into single Excel cell BecG Excel Discussion (Misc queries) 1 December 8th 04 04:55 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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