从Excel中的字符串中提取文本 [英] Extract text from a string in excel

查看:138
本文介绍了从Excel中的字符串中提取文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要提取测试编号。以及并排在两个不同列中的说明。目前,我有一长串。我想将字符串分成两组并仅提取所需的信息。

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.

我附上了一张截图,以使其更加清晰。过去,我曾使用MID函数和FIND从字符串中提取文本,但是由于此处的字符串的长度和内容不同,因此我不确定该怎么做。

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.

谢谢!!

推荐答案

单元格公式 A9

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

单元格 B9 的公式:

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

将公式拖到尽可能远的地方。

Drag formulas down as far as necessary.

这篇关于从Excel中的字符串中提取文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆