在B1单元格输入以下公式
=MID(A1,FIND("座",SUBSTITUTE(A1," ","座",2)),FIND("座",SUBSTITUTE(A1," ","座",3))-FIND("座",SUBSTITUTE(A1," ","座",2)))
或者输入=TRIM(MID(SUBSTITUTE(TRIM(A1)," ",REPT(" ",99)),99*2,99))
详见附图
亲,是这个意思么?
如下图,B1的公式为:
=MID(A1,FIND("☆",SUBSTITUTE(A1," ","☆",2))+1,FIND("☆",SUBSTITUTE(A1," ","☆",3))-FIND("☆",SUBSTITUTE(A1," ","☆",2))-1)
例如:132 13 14 23 45 里面有四个空格,我们提取第二个空格和第三个空格间的数据。【13】
=mid(a1,find(" ",a1,2)+1,find(" ",A1,3)-1)
第一个find是找第二个空格的位置,即4,加1是确定我们要找的数据的起始位置。后一个find的意思与这个类似。
=MID(A1,FIND(" ",A1,FIND(" ",A1)+1),FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)-FIND(" ",A1,FIND(" ",A1)+1))
=TRIM(MID(SUBSTITUTE(TRIM(A1)," ",REPT(" ",99)),99,99))