Extract Mid text from cell

CassieL

Board Regular
Joined
Jun 14, 2016
Messages
90
Hi everyone, I am new to excel, I am trying to extract middle text from the cell. For example:

("111111")
("222")
("5555")

I want return :
111111
222
555

Please advised!
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Assume data in column A
type in B1 =MID(A1,FIND("""",A1)+1,LEN(A1)-4) and copy down
 
Upvote 0
And if you want to convert the result to numbers use....

Code:
=MID(A1,FIND("""",A1)+1,LEN(A1)-4)+0
 
Upvote 0
Are the strings you posted in post #1 EXACTLY correct ??
Make sure there are no spaces in the string !!
 
Upvote 0
Hi Michael, yes it is correct, there is no space in between. The text string is closed with ("")
 
Upvote 0
In another space nearby type
=Len(A1)
assuming the ("111111")is in A1

Do you get 10 as the result ???
 
Upvote 0
Using your example, I used the formula I posted and it returned the expected results you provided in my spreadsheet.
 
Upvote 0
Hi,

I'm fairly sure you have leading and/or trailing spaces, give this a try:


Excel 2010
ABC
1(" 111111 ")111111
2( "222") 222
3( "55 55" )5555
Sheet1
Cell Formulas
RangeFormula
C1=--MID(SUBSTITUTE(A1," ",""),FIND("""",SUBSTITUTE(A1," ",""))+1,LEN(SUBSTITUTE(A1," ",""))-4)
 
Upvote 0

Forum statistics

Threads
1,213,517
Messages
6,114,085
Members
448,548
Latest member
harryls

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