Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

fonction "IF AND"

Aucune réponse
Avatar
maxou10
Bonjour,
Je suis confronté à un léger problème dans une boucle IF et je vais essayer d'être le plus claire possible.

Mon tableau (5 lignes 2 colonnes)
Je veux que :
-Si mais 5 conditions sont "OK" alors c'est égal à LV1
-et si une ou plusieurs conditions sont "NON OK" alors égale "LV2"

Voila mon code :
Sub XX()
'
'
With Sheets("Feuil1")
If .Range("C5").Value >= "E5" And _
.Range("C6").Value <= "E6" And _
.Range("C7").Value <= "E7" And _
.Range("C8").Value <= "E8" And _
.Range("C9").Value = "E9" _
Then
.Range("A1").Value = "LV1"
Else
.Range("A1").Value = "LV2"
End If
End With
End Sub

Merci d'avance

Réponses