1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| Dim I As Integer
I = 1 ' première ligne de la colonne des villes
Do While Cells(I, Numero_Colonne) <> ""
If Cells(I, Numero_Colonne_CA) > Cells(12, 2) And Cells(I, Numero_Colonne_PDM) > Cells(4, 1) Then
Cells(I, Numero_Colonne_Resultat) = "A"
ElseIf Cells(I, Numero_Colonne_CA) > Cells(12, 2) And Cells(I, Numero_Colonne_PDM) < Cells(4, 1) Then
Cells(I, Numero_Colonne_Resultat) = "B"
ElseIf Cells(I, Numero_Colonne_CA) < Cells(12, 2) And Cells(I, Numero_Colonne_PDM) < Cells(4, 1) Then
Cells(I, Numero_Colonne_Resultat) = "D"
ElseIf (Cells(I, 7) < Cells(16, 5)) And (Cells(I, 11) > Cells(14, 5)) Then
Cells(I, 14) = "C"
ElseIf (Cells(I, 7) = 0) Or (Cells(I, 11) = "-") Then
Cells(I, 14) = ""
End If
I = I + 1
Loop |
Partager