Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
formula setup for number combinations | Excel Worksheet Functions | |||
Formula for number combinations. | Excel Worksheet Functions | |||
number combinations. | Excel Worksheet Functions | |||
All Possible Number Combinations | Excel Discussion (Misc queries) | |||
Number combinations | Excel Worksheet Functions |