
Originally Posted by
DonkeyOte
Going back to your first post - in principle it's basically a case of running two SUBSTITUTEs against the main string - replacing
PRODUCTWIDTH with say: TRIM(MID(D2,SEARCH("cm ",D2)-3,5))
PRODUCTLENGTH with say: TRIM(RIGHT(D2,3))
It's not clear if you will be storing the "revised" description in another column, eg:
=SUBSTITUTE(SUBSTITUTE(H2,"PRODUCTWIDTH",TRIM(MID(D2,SEARCH("cm ",D2)-3,5))),"PRODUCTLENGTH",TRIM(RIGHT(D2,3)))
encase terms in ( ) if required.. not clear
I hope that helps.
Bookmarks