monsierexcel
New Member
- Joined
- Nov 19, 2018
- Messages
- 29
I am trying to make a formula which basically says "find the first word that starts with G then choose the word AFTER it" but i cant configure the formula correctly, i am a bit of a novice!
i can do it by combining IF statementslike this:
=IF(TRIM(LEFT(SUBSTITUTE(MID(B4,FIND("G",B4),LEN(B4))," ",REPT(" ",100)),100))="G",TRIM(LEFT(SUBSTITUTE(MID(B4,FIND("G",B4),LEN(B4))," ",REPT(" ",100)),100))&" "&E4,TRIM(LEFT(SUBSTITUTE(MID(B4,FIND("G",B4),LEN(B4))," ",REPT(" ",100)),100)))
but not in one formula.
example text: Bobs Golden Ticket
I want the word "ticket" to show in my formula.
thank you for your help!
i can do it by combining IF statementslike this:
=IF(TRIM(LEFT(SUBSTITUTE(MID(B4,FIND("G",B4),LEN(B4))," ",REPT(" ",100)),100))="G",TRIM(LEFT(SUBSTITUTE(MID(B4,FIND("G",B4),LEN(B4))," ",REPT(" ",100)),100))&" "&E4,TRIM(LEFT(SUBSTITUTE(MID(B4,FIND("G",B4),LEN(B4))," ",REPT(" ",100)),100)))
but not in one formula.
example text: Bobs Golden Ticket
I want the word "ticket" to show in my formula.
thank you for your help!