#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Randbetween

i have 31 cells which have the following formula: =RANDBETWEEN(1,65). i.e.
they all generate a random number between 1 and 65, this number relates to a
row on another sheet.
what i am trying to do is work it so each box generates a random number
which doesnt get repeated in any other box, what do i need to add to the
formula for this to be possible.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Randbetween

Hi,

Without resorting to code you could put the numbers 1 to 65 in column A
Then the formula =Rand() in column B and drag down to Row 65

Select column A & B and sort on column B. The top 31 numbers in column A are
guaranteed unique and within your range

Mike

"Steve Moss" wrote:

i have 31 cells which have the following formula: =RANDBETWEEN(1,65). i.e.
they all generate a random number between 1 and 65, this number relates to a
row on another sheet.
what i am trying to do is work it so each box generates a random number
which doesnt get repeated in any other box, what do i need to add to the
formula for this to be possible.

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
randbetween(1.1,1.25) Deniz Excel Worksheet Functions 3 July 10th 07 04:40 PM
RANDBETWEEN pkeegs Excel Worksheet Functions 6 April 27th 07 01:12 AM
RANDBETWEEN Michel AUDIFFREN Excel Discussion (Misc queries) 0 February 26th 06 11:02 PM
Randbetween Gbonda Excel Discussion (Misc queries) 1 June 30th 05 02:39 PM
randbetween gives ?NAME Kristjan_Thor Excel Discussion (Misc queries) 5 March 14th 05 11:41 PM


All times are GMT +1. The time now is 01:40 PM.

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"