I'm trying to extract all the text between 2 words in a cell full of text, in Google Sheets and can't find something that works with Regextract ... everything returns an error
I have tried :
=REGEXEXTRACT(B2,"Word1(.*)Word2")
any other suggestions ?
The only formula that works it's a long formula FIND
=TRIM(MID(SUBSTITUTE(B2,"Word1","|",1),FIND("|",SUBSTITUTE(B2,"Word1","|",1))+1,FIND("Word2",SUBSTITUTE(B2,"Word1","|",1))-FIND("|",SUBSTITUTE(B2,"Word1","|",1))-1))
The text inside the cell has also carriage returns ...does it matter ?
Thank you.