在excel中如何设计一个系统自动统计各科前20名各班占的人数,请高手指点。

2024-11-05 08:32:23
推荐回答(2个)
回答1:

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,

回答2:

人数怎么有小数呢?