Bonsoir Camille65, le forum
Tu introduis cette formule dans la première colonne de ton tableau via une macro :
=SI(OU(GAUCHE(E2;3)="9NP";GAUCHE(E2;3)="701";SI(ET(GAUCHE(E2;3)="921");E2<>921900));1;"")
Ensuite la méthode SpecialCells te permettra de supprimer les lignes entières concernées.
Edit : je ne suis pas très doué en formule, donc à vérifier les conditions.
A tester
Sub Supprime()
Application.ScreenUpdating = False
Columns(1).Insert
With Range("b2", Range("b" & Rows.Count).End(xlUp)).Offset(, -1)
.Formula = "=IF(OR(LEFT(E2,3)=""9NP"",LEFT(E2,3)=""701"",IF(AND(LEFT(E2,3)=""921""),E2<>921900)),1,"""")"
.Value = .Value
On Error Resume Next
.SpecialCells(2, 1).EntireRow.Delete
On Error GoTo 0
End With
Columns(1).Delete
Application.ScreenUpdating = True
End Sub
klin89