本帖最后由 小凡、、、 于 2024-5-29 15:22 编辑
if推火车
=IFS(AND(SUM(--(MID(A2,ROW($1:$4),1)=RIGHT(A2,1)))=4,C2>=99),"优秀",
AND(SUM(--(MID(A2,ROW($1:$4),1)=RIGHT(A2,1)))=3,C2>=91,C2<=98),"优秀",
AND(SUM(--(MID(A2,ROW($1:$4),1)=RIGHT(A2,1)))=2,C2>=85,C2<=90),"中上",
OR(AND(COUNT(UNIQUE(--MID(A2,ROW($1:$4),1)-{4;3;2;1}))=1,C2>=99),AND(COUNT(UNIQUE(--MID(A2,ROW($1:$4),1)-{1;2;3;4}))=1,C2>=99)),"很棒",
OR(AND(COUNT(UNIQUE(--MID(A2,ROW($2:$4),1)-{3;2;1}))=1,C2>=90,C2<=98),AND(COUNT(UNIQUE(--MID(A2,ROW($2:$4),1)-{1;2;3}))=1,C2>=90,C2<=98)),"优秀",
AND(LEFT(A2,2)=RIGHT(A2,2),C2>=90,C2<=95),"中上",
AND(SUM(MID(A2,ROW($1:$4),1)*{1;-1;1;-1})=0,C2>=90,C2<=95),"中上",
TRUE(),IF(RANDBETWEEN(0,1),"普通","一般")
)
|