如何提取指定字符后面的数值
目标业绩有三个档次(目标业绩单位是万元),我要取数最高档次。就是最后一个/后面的数值,有可能是两位数,也有可能是三位数,取数在C列,应该怎么取呢?取数结果换算成元。我只会取数右边两位数。=RIGHT(B5,2)*10000 =-LOOKUP(,-RIGHT(B5,ROW($1:$10)))/1%% =RIGHT(SUBSTITUTE(B5,"/","0"),3)*10000
还是取三位,但是把所有的斜杠都替换成0, =IFERROR(MID(B5,MAX(IFERROR(FIND("/",B5,ROW($1:$99)),""))+1,99)*10000,"")三键结束 2楼的简单有好用,我顶 =SUBSTITUTE(RIGHT(B5,3),"/",)/1%% 2、3楼都有问小问题,比如这组9/10/14,结果会出错 =IMAGINARY(SUBSTITUTE(RIGHT(B5,4),"/","+")&"i")/1%% 谢谢指正,忽略了日期格式问题。
=-LOOKUP(,-RIGHT(SUBSTITUTE(C2,"/","@"),ROW($1:$10)))/1%%
画蛇添足了
3楼的没问题
=RIGHT(SUBSTITUTE(C2,"/","00000"),5)*10000 =--RIGHT(SUBSTITUTE(B5,"/",rept(" ",9)),9)