I have a value in a cell that contains a long strong, and I have been struggling to figure out how to extract the code without the category (in all caps).
The value:
referrer type; channel=twitter; code=tweet_recycled_OSCARS NOMS_2_3; external_link=1
What I am looking to get:
tweet_recycled_2_3
I have gotten this far (D186 is the cell value):
=MID(D186,FIND("code=",D186)+5,FIND("; external_link",D186)-FIND("code=",D186)-5)
Which gives this result:
tweet_recycled_OSCARS NOMS_2_3
Thanks!
"&SUBSTITUTE(MID(D186,SEARCH("code=",D186)+5,SEARCH("; external_link",D186)-SEARCH("code=",D186)-5),"_","")&"