bonjour
une proposition pour un tableau des tirages en A1:E100 et ton x en H1 et ton y en H2
=SOMMEPROD((A1:E100=H1)*(NB.SI(INDIRECT("A" & LIGNE(A1:A100) & ":E" & LIGNE(A1:A100));H2))*1)
en vba
Function tiragexy(table, x, y)
For Each r In table.Rows
ctr = ctr + Application.CountIf(r, x) * Application.CountIf(r, y)
Next
tiragexy = ctr
End Function