这么长时间都无人答题,我只能自问自答,取文字中的數字公式,仅大家参考:
一个$的公式:
171字符
=LEFT("-$",COUNT(FIND({"$","-","-$"}&ROW($1:$10)-1,A2)))&MID(A2,MIN(FIND(ROW($1:$10)-1,A2&56^7)),LEN(LOOKUP(,-(1&MID(A2,MIN(FIND(ROW($1:$10)-1,A2&56^7)),ROW($1:$20)))))-2)
167字符
=MID(LEFT(A2,MATCH(1,MMULT(-ISERR(FIND(MID(A2&"0w",ROW($1:65)+{0,1},1),".%"&5^19)),{1;-1}),)),MIN(FIND({"","-","-$"}&ROW($1:$10)-1,A2&{"","-","-$"}&ROW($1:$10)-1)),99)
有两个$的公式:
187字符
=CHOOSE(COUNT(,FIND({"-","$","$","-$"}&ROW($1:$10)-1,A2)),,"-","$","-$")&MID(A2,MIN(FIND(ROW($1:$10)-1,A2&56^7)),LEN(LOOKUP(,-(1&MID(A2,MIN(FIND(ROW($1:$10)-1,A2&56^7)),ROW($1:$20)))))-2)
175字符
=MID(LEFT(A2,MATCH(1,MMULT(-ISERR(FIND(MID(A2&"0w",ROW($1:65)+{0,1},1),".%"&5^19)),{1;-1}),)),MIN(FIND({"","-","-$","$"}&ROW($1:$10)-1,A2&{"","-","-$","$"}&ROW($1:$10)-1)),99) |