Need formula t0 extract # between ()

Russk68

Well-known Member
Joined
May 1, 2006
Messages
589
Office Version
  1. 365
Platform
  1. MacOS
Hello all
I need to extract the number like in the example below.
Between the () is always (#ch).

Before: 16-bit Enhanced (46ch)
After: 46

Thank you!
 
Other options:

If the data (#ch) is at the end of the text, it can be with this:


=IFERROR(SUBSTITUTE(REPLACE(A1,1,FIND("(",A1),""),"ch)","")+0,"")


Otherwise with this:

=IFERROR(LEFT(SUBSTITUTE(REPLACE(A1,1,FIND("(",A1),""),"ch)",REPT(" ",250)),99)+0,"")
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
So many great options.
Thank you all!

You're welcome, thanks for the feedback.

Just realized the LEFT function isn't needed in my formula from Post # 5, can be just:


Book1
AB
116-bit Enhanced (46ch)46
232-bit (144ch)144
364-bit (299 not specified)299
4nothing
5(3ch) 32-bit content3
Sheet701
Cell Formulas
RangeFormula
B1=IFERROR(-LOOKUP(1,-MID(A1,FIND("(",A1)+1,ROW($1:$15))),"")
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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