Moderatori: Anthony47, Flash30005
[L’estensione zip è stata disattivata e non puó essere visualizzata.]
[L’estensione zip è stata disattivata e non puó essere visualizzata.]
=SCARTO($E4;0;STRINGA.ESTRAI(Q$2;1;1))&"-"&SCARTO($E4;0;STRINGA.ESTRAI(Q$2;2;1))&"-"&SCARTO($E4;0;STRINGA.ESTRAI(Q$2;3;1))
Sub combi()
Range("AM4").Select
For I = 1 To 20
For J = I + 1 To 20
For K = J + 1 To 20
Selection.Value = Range("B3").Offset(I, 0) & "-" & Range("B3").Offset(J, 0) & _
"-" & Range("B3").Offset(K, 0)
Selection.Offset(1, 0).Select
Next K
Next J
Next I
End Sub
=CONTA.SE($Q$4:$AJ$34;AM4)
No, cavaliere no! A parte che ci inc*****mo anche noi (parlo per me).....dovrebbero nominarvi almeno Cavalieri..
Sub calcola_20numeri_gruppo3()
Application.ScreenUpdating = False
Cells.Select
Rig = 2
col = 1
a = 1
b = 2
c = 3
While a < 19
While b < 20
While c < 21
Cells(Rig, col) = a
Cells(Rig, col + 1) = b
Cells(Rig, col + 2) = c
Rig = Rig + 1
c = c + 1
Wend
b = b + 1
c = b + 1
Wend
a = a + 1
b = a + 1
c = b + 1
Wend
Cells(1, 1).Select
Application.ScreenUpdating = True
End Sub
Sub calcola_6operai_gruppo3()
Application.ScreenUpdating = False
Cells.Select
Rig = 1
col = 8
a = 1
b = 2
c = 3
While a < 5
While b < 6
While c < 7
Cells(Rig, col) = a
Cells(Rig, col + 1) = b
Cells(Rig, col + 2) = c
col = col + 4
c = c + 1
Wend
b = b + 1
c = b + 1
Wend
a = a + 1
b = a + 1
c = b + 1
Wend
Cells(1, 1).Select
Application.ScreenUpdating = True
End Sub
Dim F1 As Object, F2 As Object
Dim Op1 As String, Op2 As String, Op3 As String
Dim Rig As Integer, Trio As Integer, I As Integer, Y As Integer, Z As Integer
Sub Conta_Trio()
Application.ScreenUpdating = False
Set F1 = Worksheets("Foglio1")
Set F2 = Worksheets("Foglio2")
F2.Select
F2.Range("H35:K494").Select
Selection.Clear
Counter = 0
Rig = 35
For I = 2 To 1141
Trio = 0
Op1 = F2.Cells(I, 4)
Op2 = F2.Cells(I, 5)
Op3 = F2.Cells(I, 6)
For Y = 2 To 32
For Z = 8 To 84 Step 4
If Op1 = F2.Cells(Y, Z) Or Op1 = F2.Cells(Y, Z + 1) Or Op1 = F2.Cells(Y, Z + 2) Then
If Op2 = F2.Cells(Y, Z) Or Op2 = F2.Cells(Y, Z + 1) Or Op2 = F2.Cells(Y, Z + 2) Then
If Op3 = F2.Cells(Y, Z) Or Op3 = F2.Cells(Y, Z + 1) Or Op3 = F2.Cells(Y, Z + 2) Then
Trio = Trio + 1
End If
End If
End If
Counter = Counter + 1
Application.StatusBar = "Calcolate " & Counter & " di 730.240 terne di operai."
Next Z
Next Y
If Trio <> 0 Then
F2.Cells(Rig, 8) = Op1
F2.Cells(Rig, 9) = Op2
F2.Cells(Rig, 10) = Op3
F2.Cells(Rig, 11) = Trio
Rig = Rig + 1
Trio = 0
End If
Next I
F2.Range("H35:K494").Select
Selection.Sort Key1:=F2.Range("K35"), Order1:=xlDescending, Header:=xlGuess
F1.Select
Application.ScreenUpdating = True
Application.StatusBar = False
End Sub
Range("F4").Select
ReOrd:
KKey = Selection.Address
Selection.Range("A1:F1").Select
Selection.Sort Key1:=Range(KKey), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlLeftToRight, _
DataOption1:=xlSortNormal
Selection.Range("A1").Offset(1, 0).Select
If Selection.Offset(0, -1).Value > 0 Then GoTo ReOrd
Sub calcola_90numeri_gruppo3()
Application.ScreenUpdating = False
Counter = 1
Cells.Select
Selection.ColumnWidth = 2
Inizio = Time
rig = 1
col = 1
a = 1
b = 2
c = 3
While a < 89
While b < 90
While c < 91
Cells(rig, col) = a
Cells(rig, col + 1) = b
Cells(rig, col + 2) = c
rig = rig + 1
Counter = Counter + 1
Application.StatusBar = "Calcolate " & Counter & " terzine su 117.480."
If rig > 65000 Then
rig = 1
col = col + 4
End If
c = c + 1
Wend
b = b + 1
c = b + 1
Wend
a = a + 1
b = a + 1
c = b + 1
Wend
Fine = Time
Diff = Format(Fine - Inizio, "hh:mm:ss")
Cells(1, 1).Select
Application.ScreenUpdating = True
MsgBox "Tempo trascorso = " & Diff
Application.StatusBar = False
End Sub
Torna a Applicazioni Office Windows
ruolo della costante nella formula della tendenza Autore: marcoc |
Forum: Applicazioni Office Windows Risposte: 1 |
Inserire valore assoluto in formula Autore: Ricky0185 |
Forum: Applicazioni Office Windows Risposte: 3 |
Visitano il forum: Nessuno e 89 ospiti