使用空格在Excel中提取字符串的第一个字符

时间:2016-12-02 23:00:53

标签: excel

我试图只将左边的字符(字母)提取到一个单独的列中。我已经尝试了=MID(A1,1,SEARCH(" ",A1,1)),除了ARNC1和GALE1字符串之外,这一切都适用。

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

谢谢,

2 个答案:

答案 0 :(得分:3)

即使已经有答案,也是免费的:

=MID(A1,1,MIN(FIND({0,1,2,3,4,5,6,7,8,9," "},A1&"0123456789 "))-1)

答案 1 :(得分:1)

{
    type: "checkbox",
    key: "is_active",
    templateOptions: {
        type: "",
        label: "Is Active",
        onClick: yourControllerFunctionHere  //notice this isn't a string but a reference to your controller function
    }        
}