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?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Assuming the text is in cell A1:
Code:
=MID(A1,SEARCH("(",A1)+1,SEARCH(")",A1)-2)
 
Upvote 0
(y)Thanks JoeMo, that is absolutely perfect. I have never seen the "search" function before. Something new to learn!!
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,453
Members
448,967
Latest member
grijken

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