in g2 dragged down to g1000
=IF(C2=$G$1,E2,IF(D2=$G$1,F2,""))
put team name in g1
in h1000 dragged UP to h2
=IF(G1000="","",IF(COUNTIF($G$1000:G1000,">="&0)<=5,G1000,""))
in h1 sum(h2:h1000)
there are only 760 premiere league games so from 1000 covers it easily
Bookmarks