+ Reply to Thread
Results 1 to 3 of 3

Combining left and right functions

  1. #1
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Combining left and right functions

    Hello all, I extract data from a text string. Firstly it looks for text to the left of a "-" (code below)


    Please Login or Register  to view this content.
    What i want to do is extract the text from the right of ">" also. I have the code below - but don;t know how to combine the two into a workable formula.


    Please Login or Register  to view this content.
    So if the text string in B11 read as abcd>efghij - klmnop I would want to extract efghij

    Hope that someone can help with this

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Combining left and right functions

    hi cmb80. try:
    =TRIM(MID(A1,FIND(">",A1)+1,FIND("-",A1)-FIND(">",A1)-1))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Re: Combining left and right functions

    Spot on - thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1