Re : Formules tournoi
Bonjour JBARBE,
Très pratique mais je ne sais pas utiliser le macro, or je voudrais changer à souhait le nombre de club, leurs noms, leurs résultats.
Chose faite !
Néanmoins les totaux commencent à la colonne 25 qu'il conviendra de modifier s'il y a lieu dans les lignes suivantes repérées par ' colonne 24 ( avant les totaux) & colonne 25 & colonne 26 & colonne 27 en vert !
Sans oublier de modifier dans le gestionnaire de noms, la "Zone_Saisie " concernant les cellules concernées par la couleurs !
For k = 8 To 24 ' colonne 24
If Cells(i, 3) > Cells(i, 4) And Cells(j, k) = "" Then
Cells(j, k) = "V"
Cells(j, k).Interior.ColorIndex = 23
Cells(j, 25) = Cells(j, 25) + 1 ' colonne 25
Cells(j, 25).Interior.ColorIndex = 23 ' colonne 25
Exit For
ElseIf Cells(i, 3) < Cells(i, 4) And Cells(j, k) = "" Then
Cells(j, k) = "D"
Cells(j, k).Interior.ColorIndex = 3
Cells(j, 26) = Cells(j, 26) + 1 ' colonne 26
Cells(j, 26).Interior.ColorIndex = 3 ' colonne 26
Exit For
ElseIf Cells(i, 3) = Cells(i, 4) And Cells(j, k) = "" Then
Cells(j, k) = "N"
Cells(j, k).Interior.ColorIndex = 6
Cells(j, 27) = Cells(j, 27) + 1 ' colonne 27
Cells(j, 27).Interior.ColorIndex = 6 ' colonne 27
Exit For
End If
Next k
For n = 8 To 24 ' colonne 24
If Cells(l, 3) < Cells(l, 4) And Cells(m, n) = "" Then
Cells(m, n) = "V"
Cells(m, n).Interior.ColorIndex = 23
Cells(m, 25) = Cells(m, 25) + 1 ' colonne 25
Cells(m, 25).Interior.ColorIndex = 23 ' colonne 25
Exit For
ElseIf Cells(l, 3) > Cells(l, 4) And Cells(m, n) = "" Then
Cells(m, n) = "D"
Cells(m, n).Interior.ColorIndex = 3
Cells(m, 26) = Cells(m, 26) + 1 ' colonne 26
Cells(m, 26).Interior.ColorIndex = 3 ' colonne 26
Exit For
ElseIf Cells(l, 3) = Cells(l, 4) And Cells(m, n) = "" Then
Cells(m, n) = "N"
Cells(m, n).Interior.ColorIndex = 6
Cells(m, 27) = Cells(m, 27) + 1 ' colonne 27
Cells(m, 27).Interior.ColorIndex = 6 ' colonne 27
Exit For
End If
Next n
bonne journée !