Extract text from a string in excel

我的未来我决定 提交于 2019-12-11 07:21:47

问题


I want to extract the Test #. and the description that follows into two different columns side by side. Currently I have one long string. I want to break the string into two sets and extract only the needed information.

I have attached a screenshot to make it more clear. In the past I have used the MID function and FIND to extract text from strings, but since the strings here vary in length and content I'm not sure how to do this.

Thank you in advance!!


回答1:


Formula for cell A9:

= LEFT(A2,FIND(".",A2)-1)

Formula for cell B9:

= MID(A2,FIND(". ",A2)+2,FIND(" .",A2)-FIND(". ",A2)-2)

Drag formulas down as far as necessary.



来源:https://stackoverflow.com/questions/46712138/extract-text-from-a-string-in-excel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!