• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Return Text Between TGP>

dparteka

Member
In Sheet1!A1 is the following text… TO BEGINNING AND END OF SEAL STRIP TGP>OD Micrometer<TGP 060.


In Sheet2!A1 I want the text that is between TGP> and <TGP to appear here.


The text string before, after and in between the TGP> and <TGP will always vary in length.
 
(No salutation as well ‼)


Code:
=MID(Sheet1!A1,FIND("TGP>",Sheet1!A1)+1,FIND("<TGP",Sheet1!A1)-FIND("TGP>",Sheet1!A1)-1)
 
Back
Top