分不同组进行排名?
哪位大佬帮我一下I2 增加辅助列,公式下拉
=--OR(F2={9,10,15,16})
H2 公式下拉
=IF(I2=1,COUNTIFS(I:I,I2,G:G,">"&G2)+1,COUNTIFS(I:I,I2,G:G,">"&G2)+1)
或者是
=IF(I2=1,SUMPRODUCT((($I$2:$I$17=I2)*N($G$2:$G$17>G2)))+1,SUMPRODUCT((($I$2:$I$17=I2)*N($G$2:$G$17>G2)))+1) =COUNT(0/IF(ABS(OR(A2={9,10,15,16})-ISNA(MATCH($A$2:$A$17,{9,10,15,16},))),$B$2:$B$17>B2))+1 只针对这附件公式可用 (申明喔只适合这附件)偷鸡法
C2 公式下拉
=RANK.EQ(B2,$B$2:$B$17)-4*(RANK.EQ(B2,$B$2:$B$17)>4)
(正确解法) 不增加辅助列方法
=SUMPRODUCT(--(B2<=(ISERROR(MATCH(A$2:A$17,{9,10,15,16},))=ISERROR(MATCH(A2,{9,10,15,16},)))*B$2:B$17))
页:
[1]