Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Formula for number combinations.

Hi,

I need help. I am trying to figure out the best formula to use in
extracting 6 number combinations from a group of 12. For instance in one
group I have odd numbers (1-11) and the other group has even numbers (2-12).
The numbers in eaach group can not repeat (hope I didnt confuse anyone). I
will perform this function on an Excel worksheet.

Example

1 3 5 7 9 11
2 4 6 8 10 12

One possible out come would be 1 4 5 8 9 12. Keep in mind that 1 and 2, 3
and 4, etc. can not be in the same group. Can anyone help?

The Deacon
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 915
Default Formula for number combinations.

The Deacon wrote:
Hi,

I need help. I am trying to figure out the best formula to use in
extracting 6 number combinations from a group of 12. For instance in one
group I have odd numbers (1-11) and the other group has even numbers (2-12).
The numbers in eaach group can not repeat (hope I didnt confuse anyone). I
will perform this function on an Excel worksheet.

Example

1 3 5 7 9 11
2 4 6 8 10 12

One possible out come would be 1 4 5 8 9 12. Keep in mind that 1 and 2, 3
and 4, etc. can not be in the same group. Can anyone help?

The Deacon


If I understand correctly, suppose your numbers are in A1:F2. Then place
this formula in A3 and fill (copy) through F3:

=INDEX(A1:A2,RANDBETWEEN(1,2))

Every time the worksheet recalculates, or when you press F9, a new
sequence of random selections will appear.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 506
Default Formula for number combinations.

Try this...

Paste this below function in A2 Cell for Even Numbers.
=IF(A1=EVEN(ROW()),EVEN(ROW())+200,EVEN(ROW()))

Paste this below function in B2 Cell for ODD Numbers.
=IF(B1=ODD(ROW()),ODD(ROW()+199),ODD(ROW()))

and drag it to the remaining cells.

But dont take this as the final method for this query, I just tried from my
end whatever I know. But if you are making this formula more than 200 cells
then it will create duplicates, so change the 200 to 500 when you are going
beyond 200 rows.

If this post helps, Click Yes!

--------------------
(Ms-Exl-Learner)
--------------------



"The Deacon" wrote:

Hi,

I need help. I am trying to figure out the best formula to use in
extracting 6 number combinations from a group of 12. For instance in one
group I have odd numbers (1-11) and the other group has even numbers (2-12).
The numbers in eaach group can not repeat (hope I didnt confuse anyone). I
will perform this function on an Excel worksheet.

Example

1 3 5 7 9 11
2 4 6 8 10 12

One possible out come would be 1 4 5 8 9 12. Keep in mind that 1 and 2, 3
and 4, etc. can not be in the same group. Can anyone help?

The Deacon

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default Formula for number combinations.

Hello,

Select 6 adjacent cells horizontally and array-enter:
={2,4,6,8,10,12}-INT(RAND()*2)

Regards,
Bernd
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
formula setup for number combinations The Deacon[_2_] Excel Worksheet Functions 11 April 8th 09 11:16 AM
Formula for number combinations. The Deacon[_2_] Excel Worksheet Functions 1 March 25th 09 05:49 AM
number combinations. The Deacon Excel Worksheet Functions 2 March 20th 09 08:24 AM
All Possible Number Combinations Kate Excel Discussion (Misc queries) 4 September 30th 08 07:21 PM
Number combinations xy Excel Worksheet Functions 2 February 25th 06 09:05 PM


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