单元格中文本一至九,快速替换为数字1-9
我想把杭州一办替换成杭州1办,北京九办替换成北京9办=SUBSTITUTE(A1,{"一","二","三","四","五","六","七","八","九","十"},{"1","2","3","4","5","6","7","8","9","10"})
异想天开写了个公式翻车了==
请问大佬,除了CTRL+H,如何快速将单元格中文本一至九,快速替换为数字1-9呢? =LOOKUP(,0/(SUBSTITUTE(A1,{"一","二","三","四","五","六","七","八","九","十"},{"1","2","3","4","5","6","7","8","9","10"})<>B4),SUBSTITUTE(A1,{"一","二","三","四","五","六","七","八","九","十"},{"1","2","3","4","5","6","7","8","9","10"}))在你的基础上改一下 =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"一",1),"二",2),"三",3),"四",4),"五",5),"六",6),"七",7),"八",8),"九",9),"十",10) =REPLACE(A1,SUM(IFERROR(FIND({"一","二","三","四","五","六","七","八","九"},A1),0)),1,MATCH(1=1,ISNUMBER(FIND({"一","二","三","四","五","六","七","八","九"},A1)),)) 杭州一办替换没问题,但是二、三、四……都提示#VALUE!,不过还是要谢谢您 =CONCAT(IFERROR(FIND(MID(B5,ROW(INDIRECT("1:"&LEN(B5))),1),"一二三四五六七八九十"),MID(B5,ROW(INDIRECT("1:"&LEN(B5))),1)))数组最多10b5=杭州十办如果是地名有数字就不好办了香港九龙?贵州六盘水? 上传附件应该能解决 =SUMPRODUCT((A2={"一","二","三","四","五","六","七","八","九"})*{1,2,3,4,5,6,7,8,9}) =LOOKUP(,0/(FIND(TEXT(ROW($1:$9),""),A2)),SUBSTITUTE(A2,TEXT(ROW($1:$9),""),ROW($1:$9))) B1{=REPLACE(A1,LOOKUP(9,FIND(MID("一二三四五六七八九",ROW($1:$9),1),A1)),1,MATCH(,0/FIND(MID("一二三四五六七八九",ROW($1:$9),1),A1),))
另 解 B1 右拉到J1 (J1是结果)=SUBSTITUTE(A1,MID("一二三四五六七八九",COLUMN(A1),1),COLUMN(A1))