Extract exact part of the text in Excel

2019-03-02 22:50发布

I have a column with the following type of text in it:

256 items delivered by supplier (LLC Printlogic)<br>
436 items delivered by supplier (LLC Mango)<br>
500 items shipped to supplier (Arteco Inc)<br>

How to extract value in the brackets? The result should be the following:

LLC Printlogic<br>
LLC Mango<br>
Arteco Inc

3条回答
戒情不戒烟
2楼-- · 2019-03-02 23:11

There are a number of ways to parse text. Here is one of them.

=REPLACE(REPLACE(A2, FIND(")", A2), LEN(A2), ""),1, FIND("(", A2), "")

  replace_parse

查看更多
够拽才男人
3楼-- · 2019-03-02 23:16

one alternative,

=MID(A1,FIND("(",A1)+1,FIND(")",A1)-FIND("(",A1)-1)&"<br>"
查看更多
Rolldiameter
4楼-- · 2019-03-02 23:22

And another, that assumes the characters at the end are enclosed in <...> but not might always be <br>

=SUBSTITUTE(REPLACE(A1,1,FIND("(",A1),""),")","")

enter image description here

Note that that same formula will also work on your original post, before it was edited and the <br> added at the end of each line:

enter image description here

查看更多
登录 后发表回答