还不彻底,请大家再加油,努力."深挖洞,广积函"
=MID("上下",COUNT(,MATCH("*裤*",A2,)),1)&"装"
=MID("上装下装",2*COUNT(,MATCH("*裤*",A2,))-1,2)
=TEXT(COUNT(MATCH("*裤*",A2,))-1,"下装;上装")
=IF(COUNT(1/(MID(A2,COLUMN(1:1),1)="裤")),"下装","上装")
=IF(SUM(N(MID(A2,COLUMN(1:1),1)="裤")),"下装","上装")
=TEXT(-(LEN(SUBSTITUTE(A2,"裤",))<LEN(A2)),"上装;下装")
=IF(LEN(SUBSTITUTE(A2,"裤",))<LEN(A2),"下装","上装")
=IF(SUBSTITUTE(A2,"裤",)=A2,"上装","下装")
=TEXT(-(LEN(A2)>=FIND("裤",A2&"裤")),"上装;下装")
=TEXT(-ISNUMBER(FIND("裤",A2)),"上装;下装")
=TEXT(-ISERR(FIND("裤",$A2)),"下装;上装")
=TEXT(-ISNUMBER(MATCH("*裤*",A2,)),"上装;下装")
=TEXT(-ISNA(MATCH("*裤*",A2,0)),"下装;上装")
=TEXT(LEN(A2)-LEN(SUBSTITUTE(A2,"裤",)),"下装;;上装")
=TEXT(-COUNT(SEARCH("裤",A2)),"上装;下装")
=TEXT(-COUNT(MATCH("*裤*",A2,)),"上装;下装")
=TEXT(-COUNTIF(A2,"*裤*"),"上装;下装")
将TEXT函数换成IF会更短些.
[ 本帖最后由 wshcw 于 2010-12-3 22:56 编辑 ] |