Hi Guys,
In excel I'm trying to extract a particular part of text from some html code but the text to column function fails completely with this. I've read many posts that give formula to do this instead but I'm struggling to rewrite one to suit my needs.
Here is an example one the html codes I'm trying to split. Please consider it in column A1
<span>
<H2><!-- mp_trans_rt_start id=""1"" args=""as"" 5 -->Lonsdale Drawstring Carry Sacks<!-- mp_trans_rt_end 5 --></H2><!-- mp_trans_remove_start=""DE,FR,AT"" --><BR>An ideal no-frills solution to transporting your sports equipment or everyday good, the <STRONG>Lonsdale Drawstring Carry Sacks</STRONG> have one large compartment with drawstring closure, finished with Lonsdale branding. <BR><!-- mp_trans_remove_end=""DE,FR,AT"" --><!-- mp_trans_add=""DE,FR,AT"" <!-- mp_trans_ost_start --]> --><BR>> <STRONG>Drawstring sack</STRONG> <BR>> Large compartment <BR>> Drawstring <BR>> Lonsdale branding <BR>> 48cm x 42cm x 11cm<BR><BR><!-- mp_trans_add=""DE,FR,AT"" <!-- mp_trans_ost_end --]> -->
</span>
I'm trying to extract the sizing information (48cm x 42cm x 11cm), 2nd and last line from the above string. These sizes vary in how they are written, uses different formats and units and are not always in the same place in the code but are are precursed with "<BR>>" and finished with "<BR>". I tried to use in a formula to split but getting it to work is beyond my limited capabilities.
Can anyone suggest code that will work and I can drag and drop for the rest of the worksheet?
Many thanks
Stephen
Bookmarks