1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
| Sub compteur1()
Dim derligne As Long
derligne = Sheets("AAR").Range("af65536").End(xlUp).Row
For i = 2 To derligne
For j = 4 To 27
If Cells(1, j) = Sheets("AAR").Cells(i, 32) Then
Cells(2, j) = Cells(2, j) + 1
End If
Next j
Next i
End Sub
Sub compteur2()
Dim derligne As Long
derligne = Sheets("AAR35").Range("af65536").End(xlUp).Row
For i = 2 To derligne
For j = 4 To 27
If Cells(1, j) = Sheets("AAR35").Cells(i, 32) Then
Cells(3, j) = Cells(3, j) + 1
End If
Next j
Next i
End Sub
Sub compteur3()
Dim derligne As Long
derligne = Sheets("PCH").Range("af65536").End(xlUp).Row
For i = 2 To derligne
For j = 4 To 27
If Cells(1, j) = Sheets("PCH").Cells(i, 32) Then
Cells(4, j) = Cells(4, j) + 1
End If
Next j
Next i
End Sub
Sub compteur4()
Dim derligne As Long
derligne = Sheets("EXP DIF").Range("af65536").End(xlUp).Row
For i = 2 To derligne
For j = 4 To 27
If Cells(1, j) = Sheets("EXP DIF").Cells(i, 32) Then
Cells(5, j) = Cells(5, j) + 1
End If
Next j
Next i
End Sub
Sub compteur5()
Dim derligne As Long
derligne = Sheets("RST").Range("af65536").End(xlUp).Row
For i = 2 To derligne
For j = 4 To 27
If Cells(1, j) = Sheets("RST").Cells(i, 32) Then
Cells(6, j) = Cells(6, j) + 1
End If
Next j
Next i
End Sub |