H1:
=sumproduct ((A$2:A$100=G2)*(D$2:D$100>=-small(-D$2:D$100,20))-(countif(D$2:D$100,">="&-small(-D$2:D$100,20)-20))/countif(D$2:D$100,"="&-small(-D$2:D$100,20))*sumproduct ((A$2:A$100=G2)*(D$2:D$100=-small(-D$2:D$100,20)))
数组公式,ctrL+shift+enter,
上面没有用到E列,如果用E列,要简单一点,不过如果有4个19名,就不能有第20名,H1:
=sumproduct ((A$2:A$100=G2)*(E$2:E$100>=20)-(countif(E$2:E$100,">=20")-20))/countif(E$2:E$100,"=20")*sumproduct ((A$2:A$100=G2)*(E$2:E$100="20")))
数组公式,ctrL+shift+enter,
人数怎么有小数呢?