玩转Excel数字提取!唉~就是玩!
杂乱文本中不管是提取全部数值,还是按提交提取,对于新手来说都是一个难题,今天我们就来使用一个函数搞定这些难题,顺便看看传统解决难度有多大!
案例01 | 提取单个数值
传统方法:
=--MIDB(A2,SEARCHB("?",A2),LEN(A2)*2-LENB(A2))
小白估计一时半会很难学会,这里涉及到MIDB截取函数、SEARCHB查找位置函数、LEN判断长度函数
相关函数学习:
=-LOOKUP(1,-LEFT(A2,ROW($1:$99)))
=VLOOKUP("-*",RIGHT(A2,ROW($1:$10)+{1,0}),2,0)
=INDEX(
FILTERXML(
SUBSTITUTE("<ul><li>"&$A2&"</li></ul>","-","</li><li>"),
"//li"),
COLUMN(A1))
=TRIM(
MID(
SUBSTITUTE($A2,"-",REPT(" ",99)),
99*(COLUMN(A1)-1)+1,
99
)
)
=GETNUMS("-"&$A2,"-",1,COLUMN(A1))
=IFNA(-LOOKUP(,-MID($A2,SMALL(MODE.MULT(ROW($1:99)-1+ISERR(-(MID($A2,ROW($1:99)-1,1)&0))),COLUMN(A1)),ROW($1:9))),"")
=IFERROR(-LOOKUP(1,-RIGHT(LEFT($A2,FIND("@",SUBSTITUTE($A2,"元","@",COLUMN(A1)))-1),ROW($1:$10))),"")
=IFERROR(GETNUMS($A2,"元",,COLUMN(A1)),"")
赞 (0)