Bonjour
comment compter des cellules qui se trouvent sur des lignes différentes selon deux critères différents :un critère gras et un critère de couleur? avec sommeprod ???Pour une meilleure compréhension de ma demande je joins un petit fichier...
Par avance merci de votre aide
Michel
Sub test()
Dim n, m
For n = 2 To 6
Cells(n, 7) = 0
For m = 1 To 5
If Cells(1, m).Font.Bold = True And Cells(n, m).Interior.ColorIndex = 3 Then Cells(n, 6) = Cells(n, 6) + 1
Next
Next
End Sub
Sub test()
Dim n, m
For n = 2 To 6
Cells(n, 7) = 0
For m = 1 To 5
If Cells(1, m).Font.Bold = True And Cells(n, m).Interior.ColorIndex = 3 Then Cells(n, 6) = Cells(n, 6) + 1
Next
Next
End Sub