2017-09-23 102 views

回答

1

使用留下了查找和替代:

=LEFT(F1,FIND("}}}",SUBSTITUTE(F1," ","}}}",2)&"}}}")) 

enter image description here


的VBA使用UDF:

Function firstTwo(str As String) As String 
Dim strArr() As String 
strArr = Split(str) 
If UBound(strArr) = LBound(strArr) Then 
    firstTwo = strArr(0) 
Else 
    firstTwo = strArr(0) & " " & strArr(1) 
End If 

End Function 

你会调用它从片:

=firstTwo(F1) 

然后复制下来。

相关问题