Extra text with brackets from text field

Kim25

Board Regular
Joined
Oct 1, 2010
Messages
63
Hi All,

I have a text field such as

(AULOPT0043-AU1-A015900) Def R

I want to be able to extract the text/numbers between the brackets ie. AULOPT0043-AU1-A015900.

The text/numbers between the brackets may vary in length.

Does anyone have ideas for a forumula that could do this for me?
 

Some videos you may like

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
17,388
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Assuming the text is in cell A1:
Code:
=MID(A1,SEARCH("(",A1)+1,SEARCH(")",A1)-2)
 

Kim25

Board Regular
Joined
Oct 1, 2010
Messages
63
(y)Thanks JoeMo, that is absolutely perfect. I have never seen the "search" function before. Something new to learn!!
 

Watch MrExcel Video

Forum statistics

Threads
1,122,499
Messages
5,596,517
Members
414,074
Latest member
Matthew Kakde

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
Top