Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Excel - randomization with certain criteria

I'm trying to develop a sheet that creates six random number from given list
of data. I've already found the solution for that but there are some
conditions that has to be fulfilled and I don't know how to solve it, so I
was hoping that somebody can help me.
A little explanation of the problem: on international amateur boxing
championship, computer has to automatically draw the list of 1 referee
(judge in the ring) and 5 judges (judges around the ring) from the list of
available judges, but:
1. referee and judges must not be from the countries of participants in the
ring and 2. referee can not be in the ring twice in the roll
If somebody know answer to this problem, I would appreciate it.
Thank you in advance.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9,101
Default Excel - randomization with certain criteria

The two methods normally used are

1) Eliminate the inelligable judges before picking tthe random judge

2) Keep on picking judges until one that meets the requirements.

"Alen Paliska" wrote:

I'm trying to develop a sheet that creates six random number from given list
of data. I've already found the solution for that but there are some
conditions that has to be fulfilled and I don't know how to solve it, so I
was hoping that somebody can help me.
A little explanation of the problem: on international amateur boxing
championship, computer has to automatically draw the list of 1 referee
(judge in the ring) and 5 judges (judges around the ring) from the list of
available judges, but:
1. referee and judges must not be from the countries of participants in the
ring and 2. referee can not be in the ring twice in the roll
If somebody know answer to this problem, I would appreciate it.
Thank you in advance.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Excel - randomization with certain criteria

yes, it's true, but each draw has to be done only once, and to be completely
honest, I'm not that experienced in Excel VBA to develop it on my own... :(

"Joel" wrote in message
...
The two methods normally used are

1) Eliminate the inelligable judges before picking tthe random judge

2) Keep on picking judges until one that meets the requirements.

"Alen Paliska" wrote:

I'm trying to develop a sheet that creates six random number from given
list
of data. I've already found the solution for that but there are some
conditions that has to be fulfilled and I don't know how to solve it, so
I
was hoping that somebody can help me.
A little explanation of the problem: on international amateur boxing
championship, computer has to automatically draw the list of 1 referee
(judge in the ring) and 5 judges (judges around the ring) from the list
of
available judges, but:
1. referee and judges must not be from the countries of participants in
the
ring and 2. referee can not be in the ring twice in the roll
If somebody know answer to this problem, I would appreciate it.
Thank you in advance.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9,101
Default Excel - randomization with certain criteria

With random number one draw is usually defined as picking until a valid item
is drawn.

If you would write code to pick a lottery number.The game requires you to
pick three number 1-10. You can only have each number picked once.


A = Int((9 * Rnd(x)) + 1)

B = -1
Do While B < A

B = Int((9 * Rnd(x)) + 1)
Loop


C = -1
Do While (C < A) And (C < B)

C = Int((9 * Rnd(x)) + 1)
Loop


"Alen Paliska" wrote:

yes, it's true, but each draw has to be done only once, and to be completely
honest, I'm not that experienced in Excel VBA to develop it on my own... :(

"Joel" wrote in message
...
The two methods normally used are

1) Eliminate the inelligable judges before picking tthe random judge

2) Keep on picking judges until one that meets the requirements.

"Alen Paliska" wrote:

I'm trying to develop a sheet that creates six random number from given
list
of data. I've already found the solution for that but there are some
conditions that has to be fulfilled and I don't know how to solve it, so
I
was hoping that somebody can help me.
A little explanation of the problem: on international amateur boxing
championship, computer has to automatically draw the list of 1 referee
(judge in the ring) and 5 judges (judges around the ring) from the list
of
available judges, but:
1. referee and judges must not be from the countries of participants in
the
ring and 2. referee can not be in the ring twice in the roll
If somebody know answer to this problem, I would appreciate it.
Thank you in advance.




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
=DMIN(database,field,criteria) question about criteria Dummy Excel Discussion (Misc queries) 2 April 16th 07 08:02 PM
Data Randomization Hannie1004 Excel Worksheet Functions 2 February 16th 06 06:50 PM
Countif using format criteria not number criteria? Rumbla76 Excel Worksheet Functions 1 April 20th 05 05:38 AM
Counting Cells with multiple criteria.One criteria supporting wild Azhar Saleem Excel Worksheet Functions 1 January 12th 05 10:54 AM
Counting Cells with multiple criteria.One criteria supporting wild Azhar Arain Excel Worksheet Functions 1 January 12th 05 08:33 AM


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