return value contained in cell within ""

AJohn01

New Member
Joined
Jun 27, 2012
Messages
10
I have an excel spreadsheet that contains a description column that has cells that contain numbers within ""
eg
Signal Mast @ 243.968 - R/R/ML/SG - 2002 Galv Tube - "244/12"</SPAN>

<TBODY>
</TBODY><COLGROUP><COL></COLGROUP>
I need to get a formula that extracts the numbers within the "" or if none return value of NIL

the cells are not consistant in length & some cells do not contain any ""
Thanks in anticipation ...
Anne
 
Also a shorter?

=TRIM(LEFT(SUBSTITUTE(REPLACE(A1,1,FIND("""",A1&""""),""),"""",REPT(" ",99)),99))
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
I have an excel spreadsheet that contains a description column that has cells that contain numbers within ""
eg
Signal Mast @ 243.968 - R/R/ML/SG - 2002 Galv Tube - "244/12"</SPAN>

<TBODY>
</TBODY>
I need to get a formula that extracts the numbers within the "" or if none return value of NIL

the cells are not consistant in length & some cells do not contain any ""
Thanks in anticipation ...
Anne
Here's another one...

=TRIM(MID(SUBSTITUTE(A2,"""",REPT(" ",100)),100,100))

Assumes that if there is one quote " then there will be a matching quote ".
 
Upvote 0

Forum statistics

Threads
1,214,948
Messages
6,122,420
Members
449,083
Latest member
Ava19

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