Simulate string split function in Excel formula

后端 未结 8 1737
难免孤独
难免孤独 2020-12-09 09:15

I am trying to split a string in an excel formula, something like I can do in many programming languages, e.g.

string words = \"some text\".split(\' \');
         


        
8条回答
  •  猫巷女王i
    2020-12-09 09:24

    The following returns the first word in cell A1 when separated by a space (works in Excel 2003):

    =LEFT(A1, SEARCH(" ",A1,1))
    

提交回复
热议问题