Trim/Search Problem

stephen567

New Member
Joined
Apr 16, 2009
Messages
7
Hi Guys, Hopefully one of you will be able to help.

I have this data. e.g.

Smith,John (UK4569)
Bob,Billy (UKI8792)
Sam,Sammy (UK8974)

I am looking to pull back the 4 numbers in the brackets only, So I would need a formula that would find the close ) and then take the other for digits.

Anyone got any ideas?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
If the strings, like in the examples, always end in the 4 digit number plus a closing parenthesis:

=LEFT(RIGHT(A1,5),4)
 
Upvote 0
stephen567,


Excel Workbook
AB
1Smith,John (UK4569)4569
2Bob,Billy (UKI8792)8792
3Sam,Sammy (UK8974)8974
4
Sheet1



The formula in cell B1 copied down:
=MID(A1,FIND(")",A1,1)-4,4)
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,299
Members
452,904
Latest member
CodeMasterX

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