Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
drbobsled
 
Posts: n/a
Default Select unused number

I have a list of numbers (1 to 9) in G1:G9 that are displayed in a random
manner, with no duplicates.

In G2 I need to put a random number from 1 to 9 Other than the number in G1.
In G3 the number has to be one of the remaining 7 numbers.
in G4 the number has to be one of the remaining 6 numbers.
etc.
I don't want to use a macro to do this, just functions and not UDF, either.

Any suggestions would be appreciated.

drbobsled.
  #2   Report Post  
Herbert Seidenberg
 
Posts: n/a
Default

Create a 9 row vector with the name Randy. Fill with
=RAND()
Create an adjacent 9 row vector named Sandy. Fill with
=RANK(Randy,Randy)
Hit F9 until the first row of Sandy is equal to G1.

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
convert text-format number to number in excel 2000%3f Larry Excel Discussion (Misc queries) 1 July 29th 05 08:18 PM
How to randomly select from a list with condition kathyxyz Excel Worksheet Functions 5 July 27th 05 04:19 PM
Master invoice number Christopher M. Excel Worksheet Functions 0 July 24th 05 04:26 PM
Is there a formula to spell out a number in excel? Sha-nay-nay Excel Worksheet Functions 2 December 18th 04 09:25 PM
Defining a number in a cell by text then subtracting it by the tex Crowraine Excel Worksheet Functions 1 December 16th 04 07:49 AM


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