3
I would like to extract only the word from a cell that contains a specific character ("=") within the text.
A2: Dolly made me a homemade=cake and some muffins
A3: we had cheese=cake for dinner
A4: Everyone loves how the bakery makes some awesome=cakes
I would like the following from in column (A2:A4) to provide the following results in column (B2:B4).
B2: homemade=cake
B3: cheese=cake
B4: awesome=cakes
I have tried the following solution with worksheet functions.
A2: Johnny made his own dinner=lastnight and then cleaned the kitchen
=TRIM(TRIM(IFERROR(RIGHT(SUBSTITUTE(LEFT(A2,SEARCH(" ",A2&" ",SEARCH("=",A2))-1)," ",REPT(" ",LEN(A2))),LEN(C246)),""))),""),
This formula does not work as you may see, as it only extracts data to the right of the ("=") symbol with the following results . Whereas, I'm seeking a solution that will extract the whole word (right and left) of where the ("=") symbol.
C3:
or B4:`? Your question is inconsistent. – DavidPostill – 2015-09-17T13:42:12.2572
sed -r 's/.*\b([^ \t]+=[^ \t]+)\b.*/\1/'
.. sorry, couldn't resist. – Peter Schneider – 2015-09-17T14:30:44.477