Extracting all words that begin with "(" and ending with ")"

Jtwa

New Member
Joined
Oct 31, 2012
Messages
11
[TABLE="width: 500"]
<tbody>[TR]
[TD]Sentence[/TD]
[TD]Extracted Words[/TD]
[/TR]
[TR]
[TD]I want this word (Michael) and this other word (Jordan) extract[/TD]
[TD](Michael) (Jordan)[/TD]
[/TR]
[TR]
[TD]I want this (Lebron) as well as (Kobe) and finally (Curry)[/TD]
[TD](Lebron) (Kobe) (Curry)[/TD]
[/TR]
[TR]
[TD]Simple (NBA)[/TD]
[TD](NBA)[/TD]
[/TR]
</tbody>[/TABLE]

I'm not sure how to do something like this. The best i could do was just one 1 word using this
=TRIM(LEFT(SUBSTITUTE(MID(A1,FIND("(",A1),LEN(A1))," ",REPT(" ",200)),200))
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Try:

ABCDE

<tbody>
[TD="align: center"]1[/TD]
[TD="bgcolor: #FAFAFA"]Sentence[/TD]
[TD="bgcolor: #FAFAFA"]Extracted Words[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]2[/TD]
[TD="bgcolor: #FAFAFA"]I want this word (Michael) and this other word (Jordan) extract[/TD]
[TD="bgcolor: #FAFAFA"](Michael)[/TD]
[TD="bgcolor: #FAFAFA"](Jordan)[/TD]
[TD="bgcolor: #FAFAFA"][/TD]

[TD="align: center"]3[/TD]
[TD="bgcolor: #FAFAFA"]I want this (Lebron) as well as (Kobe) and finally (Curry)[/TD]
[TD="bgcolor: #FAFAFA"](Lebron)[/TD]
[TD="bgcolor: #FAFAFA"](Kobe)[/TD]
[TD="bgcolor: #FAFAFA"](Curry)[/TD]
[TD="bgcolor: #FAFAFA"][/TD]

[TD="align: center"]4[/TD]
[TD="bgcolor: #FAFAFA"]Simple (NBA)[/TD]
[TD="bgcolor: #FAFAFA"](NBA)[/TD]
[TD="bgcolor: #FAFAFA"][/TD]
[TD="bgcolor: #FAFAFA"][/TD]

</tbody>
Sheet3

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<tbody>[TR]
[TH]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
[TR]
[TH]B2[/TH]
[TD="align: left"]=IFERROR(TRIM(LEFT(SUBSTITUTE(MID($A2,FIND("|",SUBSTITUTE($A2,"(","|",COLUMNS($B2:B2))),LEN($A2)),")",")"&REPT(" ",LEN($A2))),LEN($A2))),"")[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]


Put the formula in B2 and drag down and across as needed.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,226,113
Messages
6,189,046
Members
453,522
Latest member
Seeker2025

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top