Icewynd,
Icewynd said:
Yes, this is
CORRECT 
.
Not sure how you get to 118,608. It sounds right, given that the total number of possible combinations is 134,596.
I am going to post the code that I thought was correct below.
It doesn't have anything to do with the
134,596 combinations as such because as you quite rightly said the
Centre numbers are
C(22,4) which equates to
7,315 combinations. Then the added parameters extends this to
118,608 combinations.
Jack,
I am going to leave this thread because of the reasons below:-
Firstly, because you are
STILL multi posting.
Secondly, because of the following...
JACK said:
Hello, icewynd, perfect, well you took the idea, of course if it is expected vtrac line, we will have 12 numbers on each line to deploy the vtrac, but still is far better predict, pab hello, you have lever into account that in the example = pairs extremes
* 08xxxx19 the center court must stay within the limits 08-18, then where is xxxx, can not for example 07 or 20, then when building the macro has to do this detail,
* Another example = 05 xxxx 21 blocks from the center has to have the limit of 06 a20
Then the center court can not have less than the number 1 and number of the pair can not
* Having the largest number that 2nd number of the pair, macro view this has
JACK said:
hello, pab, when you get the idea will be good, that
* 4 groups of 6 numbers, is central to the blocks,
4 Issues tirndo do in a group, is the basic filter, then we use your stats to filter, that is why the courts have conbinaçoes be 100%, which then uses filters
JACK said:
Hello, ice, example 05 06 08 15 17 19, if the pair of extremes is 06 and 17, this training is wrong because the 05 can not be less than the 1st number of the pair and 19 can not be higher than 2 º number of pair this type of combination is wrong!! ok
JACK said:
Hello, icewynd, we focus on the central blocks, you can separate the endings, the last digit of 0-9 blocks? And see how many combinations are possible?
example =
0012
0013
other
4459 ....
Always remembering that it is up to 24, so that the first digit of 0,1,2, does not enter the study,
It's kind of karnaugt map to see the endings of the central blocks, this filter is powerful
* For the central blocks, the pab knows!
...
AND the last post is
TOTALLY UNNECESSARY.
This is what I have tried to explain in a previous post.
You continually post one after the other changing the criteria.
If you look at the above, one minute you are talking about
12 numbers on each line to deploy the vtrac, the next you are talking about
4 groups of 6 numbers, and then you are talking about
the last digit of 0-9 blocks.
I am sorry but I have totally lost interest because I have tried to explain about the multiple posts and trying to keep some sort of continuity.
My comments have obviously gone amiss.
Therefore, I will
NOT participate in this particular thread from now on.
Icewynd,
Here is the code that I said I would post that I finally thought was needed:-
Option Explicit
Option Base 1
Const MinA As Integer = 1
Const MaxF As Integer = 24
Dim A As Integer, B As Integer, C As Integer, D As Integer, E As Integer, F As Integer
Sub Min_Max_Centre_PAB()
Dim Start As Double
Start = Timer
Dim Count As Long
With Application
.ScreenUpdating = False: .Calculation = xlCalculationManual: .DisplayAlerts = False
End With
Range("A:A").Delete
Range("A1").Select
Count = 0
For A = MinA To MaxF - 5
For B = A + 1 To MaxF - 4
For C = B + 1 To MaxF - 3
For D = C + 1 To MaxF - 2
For E = D + 1 To MaxF - 1
For F = E + 1 To MaxF
If A <= 8 And B >= 2 And E <= 23 And F >= 17 Then
Count = Count + 1
ActiveCell.Value = Format(A, "00") & "-" _
& Format(B, "00") & "-" _
& Format(C, "00") & "-" _
& Format(D, "00") & "-" _
& Format(E, "00") & "-" _
& Format(F, "00")
ActiveCell.Offset(1, 0).Select
End If
Next F
Next E
Next D
Next C
Next B
Next A
ActiveCell.Offset(1, 0) = "Process Time: " & _
Format(((Timer - Start) / 24 / 60 / 60), "hh:mm:ss") & " Seconds"
Range("A1").Select
With Application
.DisplayAlerts = True: .Calculation = xlCalculationAutomatic: .ScreenUpdating = True
End With
End Sub
I am going to put my time into the
Vtrac thread that
Icewynd and I have been working on for a while now.
Good luck
Jack.
Regards,
PAB
-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-∏-
12:45, restate my assumptions.
Mathematics is the language of nature.
Everything around us can be represented and understood through numbers.
If you graph the numbers of any system, patterns emerge. Therefore, there are patterns everywhere in nature.