using Find and splitting text

monsierexcel

New Member
Joined
Nov 19, 2018
Messages
29
i have the string "

<colgroup><col width="571"></colgroup><tbody>
[TD="width: 571"]Small Parcel Box Royal Mail Postal Box A4 310mm x 230mm x 150mm Diecut"

I want to pull the text "310mm x 230mm x 150mm" i can use Find and Right to pull the first mm and extract specifc level of characters but im not sure how to pull the whole string so the first space before 310mm until the last mm after 150?

Hope someone is clever with cutting these out in formula!

thank you all,

[/TD]

</tbody>
 
I'm afraid I don't understand.
3 of those 4 strings are already what you said you wanted.
 
Upvote 0

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi Fluff, sorry to quote a full string it could be anything within there
so
"blah blah blah 400mm x 20mm x 30mm blah blah"
"test 400mm x 200mm x 300mm test test test"
 
Upvote 0
Dante's formula already does that


Excel 2013/2016
AB
2Small Parcel Box Royal Mail Postal Box A4 310mm x 230mm x 150mm Diecut310mm x 230mm x 150mm
3blah blah blah 400mm x 20mm x 30mm blah blah400mm x 20mm x 30mm
4test 400mm x 200mm x 300mm test test test400mm x 200mm x 300mm
Log
Cell Formulas
RangeFormula
B2=TRIM(MID(SUBSTITUTE(A2," ", REPT(" ",250)),SEARCH("mm",SUBSTITUTE(A2," ", REPT(" ",250)))-50,250*5))
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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