Novità

x Statix57

Stato
Chiusa ad ulteriori risposte.
R

Roby

Guest
hai una foruma in excel per il calcolo combinatorio ???? solo per i terni con 90 numeri ???


però in excel me li dovrebbe sviluppare

per ora ti ringrazio se hai questo è fatta :D
 

imported_n/a

Advanced Premium Member
Ciao ecco questa macro ti sviluppa sia le combinazioni per ambo che per terno.
cosi funziona per Terno

Codice:
Sub Amberno()
Dim I As Integer: Dim J As Integer: Dim K As Integer
For I = 1 To 90
For J = 1 + I To 90
For K = 1 + J To 90                  'TERNO
If J = I Or K = I Or K = J Then GoTo skip:    '<<< TERNO/-Ambo
'If J = I Or K = I Then GoTo skip:             ' <<< AMBO/-Terno
Cells(Rows.Count, 1).End(xlUp).Offset(1, 0) = I
Cells(Rows.Count, 1).End(xlUp).Offset(0, 1) = J
Cells(Rows.Count, 1).End(xlUp).Offset(0, 2) = K     'TERNO
skip:
Next K            'Terno
Next J
Next I
End Sub

Così per ambo
Codice:
Sub Amberno()
Dim I As Integer: Dim J As Integer: Dim K As Integer
For I = 1 To 90
For J = 1 + I To 90
'For K = 1 + J To 90                  'TERNO
'If J = I Or K = I Or K = J Then GoTo skip:    '<<< TERNO/-Ambo
If J = I Or K = I Then GoTo skip:             ' <<< AMBO/-Terno
Cells(Rows.Count, 1).End(xlUp).Offset(1, 0) = I
Cells(Rows.Count, 1).End(xlUp).Offset(0, 1) = J
'Cells(Rows.Count, 1).End(xlUp).Offset(0, 2) = K     'TERNO
skip:
'Next K            'Terno
Next J
Next I
End Sub
 

imported_n/a

Advanced Premium Member
credo per la cinquina non si possa fare ,in quanto excel non gestirebbe il quantitativo di righe,
excel 2007 arrivano fino ad un milione per 16000 colonne.
excel 97/2003 righe 65000 per 1024 colonne.
approssitivamente.
 

alce

Member
Ciao Statix,
Premetto che in fatto di excel sono a zero, vorrei applicare la tua
macro, cosa devo fare?.
grazie alce
 
Stato
Chiusa ad ulteriori risposte.

Ultima estrazione Lotto

  • Estrazione del lotto
    sabato 04 maggio 2024
    Bari
    02
    31
    81
    52
    21
    Cagliari
    39
    88
    84
    01
    67
    Firenze
    36
    30
    70
    06
    41
    Genova
    59
    23
    61
    22
    27
    Milano
    05
    17
    69
    57
    39
    Napoli
    81
    62
    82
    43
    50
    Palermo
    73
    55
    62
    45
    18
    Roma
    76
    70
    01
    64
    15
    Torino
    82
    55
    35
    70
    46
    Venezia
    58
    23
    61
    29
    21
    Nazionale
    10
    14
    01
    43
    09
    Estrazione Simbolotto
    Milano
    30
    01
    05
    32
    11

Ultimi Messaggi

Alto