Tu trouveras ici les triplés gagnants (les colonnes où se trouvent nom, prénom, date de naissance) et le test est fait sur l'existence du prénom.
donnees = Array("14,15,22", "14,39,42", "14,45,47", "14,48,50", "14,52,53", "14,54,55", "14,56,57")
Sub fam()
Set f1 = Sheets("raw_NSC")
Set f2 = Sheets("Feuil1")
donnees = Array("14,15,22", "14,39,42", "14,45,47", "14,48,50", "14,52,53", "14,54,55", "14,56,57")
f2.Select
If Not f2.ListObjects(1).DataBodyRange Is Nothing Then f2.ListObjects(1).DataBodyRange.Delete
k = 2
With f1.ListObjects(1)
For i = 1 To .ListRows.Count
With .DataBodyRange
For Each donnee In donnees
tbl = Split(donnee, ",")
If .Cells(i, tbl(1) * 1) <> "" Then
Cells(k, 1) = .Cells(i, tbl(0) * 1)
Cells(k, 2) = .Cells(i, tbl(1) * 1)
Cells(k, 3) = .Cells(i, tbl(2) * 1)
k = k + 1
End If
Next
End With
Next
End With
End Sub