用一个空格在Excel中提取string的第一个字符
我试图只提取到左边的字符(字母)到一个单独的列。 我试过了=MID(A1,1,SEARCH(" ",A1,1))
,除了ARNC1和GALE1string以外,它都可以工作。
ARNC1 01202017 C 13 AAPL 12232016 C 113 CMI 12232016 C 135 JCP 12302016 C 10.5 PSX 12232016 C 88 GALE1 01192018 C 3
比如我需要看。
ARNC AAPL CMI JCP PSX GALE
谢谢,
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(MID(A1,1,SEARCH(" ",A1,1)),1,""),2,""),3,""),4,""),5,""),6,""),7,""),8,""),9,""),0,"")
即使已经有一个答案,只是免费的:
=MID(A1,1,MIN(FIND({0,1,2,3,4,5,6,7,8,9," "},A1&"0123456789 "))-1)