Bonsoir,
une proposition
Sub test()
colnom = Rows(1).Find("nom", lookat:=xlWhole, MatchCase:=False).Column
colemail = Rows(1).Find("email", lookat:=xlWhole, MatchCase:=False).Column
colprenom = Rows(1).Find("prenom", lookat:=xlWhole, MatchCase:=False).Column
coltelephone = Rows(1).Find("telephone", lookat:=xlWhole, MatchCase:=False).Column
colniveau = Rows(1).Find("niveau", lookat:=xlWhole, MatchCase:=False).Column
colpoule = Rows(1).Find("poule", lookat:=xlWhole, MatchCase:=False).Column
For i = 1 To x
If Cells(i, colniveau) > B Then
Cells(i, colpoule) = "1"
Else
Cells(i, colpoule) = "2"
End If
Next
End Sub