简体   繁体   English

从excel中的字符串中提取文本

[英]Extract text from a string in excel

I want to extract the Test #. 我想提取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. 在过去,我使用MID函数和FIND从字符串中提取文本,但由于这里的字符串长度和内容不同,我不知道如何做到这一点。

Thank you in advance!! 先感谢您!!

Formula for cell A9 : 单元格A9公式:

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

Formula for cell B9 : 细胞B9配方:

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

Drag formulas down as far as necessary. 尽可能向下拖动公式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM