现将公式汇总如下,有兴趣的继续跟贴补充。
40个字符以下的公式:
=MID("差差差差差差中中良优优",1+A2/10,1)
=MID("差中中良优优",MAX(A2/10-4,1),1)
=MID("差差差中良优优",1+A2/20+(A2>=90),1)
=TEXT(0&A2-60,"[>=30]优;[<20]中;良;差")
=MID("差差差中良优",1+A2/20+(A2>=90)/2,1)
=MID("中中良优优差",IF(A2<60,6,A2/10-5),1)
=MID("差中良优",MATCH(A2,{0,60,80,90}),1)
=MID("差中良优",SUM(N(A2>={0;60;80;90})),1)
=MID("差中良优",SUM(N(A2>={0,6,8,9}*10)),1)
另外,40个字符及其以上的还有:
=MID("差中良优",1+(A2>59)+(A2>79)+(A2>89),1)
=LOOKUP(A2,{0,"差";60,"中";80,"良";90,"优"})
=MID("差中良优",COUNT(1/(A2>={0,60,80,90})),1)
=MID("差中良优",1+(A2>=60)+(A2>=80)+(A2>=90),1)
=HLOOKUP(A2,{0,60,80,90;"差","中","良","优"},2)
=TEXT(0&INT(A2/20-3+(A2>=90)),"[>=2]优;[>]良;中;差")
=CHOOSE(SUM(--(A2>={0;60;80;90})),"差","中","良","优")
=TEXT(0&SUM(--(A2>={60;80;90}))-1,"[>1]优;[>]良;中;差")
=INDEX({"差";"中";"良";"优"},SUM(--(A2>={0;60;80;90})))
[ 本帖最后由 wshcw 于 2009-8-13 17:34 编辑 ] |