+ Reply to Thread
Results 1 to 11 of 11

returning specific text only

  1. #1
    Jane
    Guest

    returning specific text only

    here is my text strong:
    PO: Trans:DC:MMU - DO NOT BREAKTICKET:ALLOC:RE ORDER OF # 103157131,
    101915744. MMU - DO NOT BREAKAP:

    I want to return text starting with ALLOC but stop at and not include AP.

    thank you in advance, jane

  2. #2
    Don Guillett
    Guest

    Re: returning specific text only

    use FIND or SEARCH to find the position of the desired text and then
    incorporate into a MID function

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "Jane" <[email protected]> wrote in message
    news:[email protected]...
    > here is my text strong:
    > PO: Trans:DC:MMU - DO NOT BREAKTICKET:ALLOC:RE ORDER OF # 103157131,
    > 101915744. MMU - DO NOT BREAKAP:
    >
    > I want to return text starting with ALLOC but stop at and not include AP.
    >
    > thank you in advance, jane




  3. #3
    Beege
    Guest

    Re: returning specific text only


    "Jane" <[email protected]> wrote in message
    news:[email protected]...
    > here is my text strong:
    > PO: Trans:DC:MMU - DO NOT BREAKTICKET:ALLOC:RE ORDER OF # 103157131,
    > 101915744. MMU - DO NOT BREAKAP:
    >
    > I want to return text starting with ALLOC but stop at and not include AP.
    >
    > thank you in advance, jane


    =MID(B2,SEARCH("ALLOC",B2,1),SEARCH("AP:",B2,1)-(SEARCH("ALLOC",B2,1)))



  4. #4
    CLR
    Guest

    Re: returning specific text only

    =(MID(A1,FIND("ALLOC",A1,1),FIND("AP:",A1,1)-FIND("ALLOC",A1,1)))

    and if you want the colon at the end.....

    =(MID(A1,FIND("ALLOC",A1,1),FIND("AP:",A1,1)-FIND("ALLOC",A1,1)))&":"

    Vaya con Dios,
    Chuck, CABGx3



    "Jane" <[email protected]> wrote in message
    news:[email protected]...
    > here is my text strong:
    > PO: Trans:DC:MMU - DO NOT BREAKTICKET:ALLOC:RE ORDER OF # 103157131,
    > 101915744. MMU - DO NOT BREAKAP:
    >
    > I want to return text starting with ALLOC but stop at and not include AP.
    >
    > thank you in advance, jane




  5. #5
    Jane
    Guest

    Re: returning specific text only

    purely as a time issue, ca you show me how that would look?


    "Don Guillett" wrote:

    > use FIND or SEARCH to find the position of the desired text and then
    > incorporate into a MID function
    >
    > --
    > Don Guillett
    > SalesAid Software
    > [email protected]
    > "Jane" <[email protected]> wrote in message
    > news:[email protected]...
    > > here is my text strong:
    > > PO: Trans:DC:MMU - DO NOT BREAKTICKET:ALLOC:RE ORDER OF # 103157131,
    > > 101915744. MMU - DO NOT BREAKAP:
    > >
    > > I want to return text starting with ALLOC but stop at and not include AP.
    > >
    > > thank you in advance, jane

    >
    >
    >


  6. #6
    Don Guillett
    Guest

    Re: returning specific text only

    I see that you were fed the answer. I wonder if it will stick with you as
    long as if you had done it yourself?

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "Jane" <[email protected]> wrote in message
    news:[email protected]...
    > purely as a time issue, ca you show me how that would look?
    >
    >
    > "Don Guillett" wrote:
    >
    >> use FIND or SEARCH to find the position of the desired text and then
    >> incorporate into a MID function
    >>
    >> --
    >> Don Guillett
    >> SalesAid Software
    >> [email protected]
    >> "Jane" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > here is my text strong:
    >> > PO: Trans:DC:MMU - DO NOT BREAKTICKET:ALLOC:RE ORDER OF # 103157131,
    >> > 101915744. MMU - DO NOT BREAKAP:
    >> >
    >> > I want to return text starting with ALLOC but stop at and not include
    >> > AP.
    >> >
    >> > thank you in advance, jane

    >>
    >>
    >>




  7. #7
    Jane
    Guest

    Re: returning specific text only

    hmmm, tried both but got the #VALUE error. Is that a function of copying
    from here to my spreadsheet? Do I need to type our the formula?

    "CLR" wrote:

    > =(MID(A1,FIND("ALLOC",A1,1),FIND("AP:",A1,1)-FIND("ALLOC",A1,1)))
    >
    > and if you want the colon at the end.....
    >
    > =(MID(A1,FIND("ALLOC",A1,1),FIND("AP:",A1,1)-FIND("ALLOC",A1,1)))&":"
    >
    > Vaya con Dios,
    > Chuck, CABGx3
    >
    >
    >
    > "Jane" <[email protected]> wrote in message
    > news:[email protected]...
    > > here is my text strong:
    > > PO: Trans:DC:MMU - DO NOT BREAKTICKET:ALLOC:RE ORDER OF # 103157131,
    > > 101915744. MMU - DO NOT BREAKAP:
    > >
    > > I want to return text starting with ALLOC but stop at and not include AP.
    > >
    > > thank you in advance, jane

    >
    >
    >


  8. #8
    Beege
    Guest

    Re: returning specific text only

    "Don Guillett" <[email protected]> wrote in message
    news:[email protected]...
    >I see that you were fed the answer. I wonder if it will stick with you as
    >long as if you had done it yourself?
    >
    > --
    > Don Guillett


    Don,

    Of course, your right. Teaching how to fish is better than giving fish away.
    I'm here learning Excel, too, and I get excited when I can solve. It's also
    very interesting to see how many different solutions and variations come up.
    Moderation....

    Beege




  9. #9
    Don Guillett
    Guest

    Re: returning specific text only

    I'm glad you agree. As time goes on you will find that there are usually
    several ways to "skin the cat"

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "Beege" <[email protected]> wrote in message
    news:[email protected]...
    > "Don Guillett" <[email protected]> wrote in message
    > news:[email protected]...
    >>I see that you were fed the answer. I wonder if it will stick with you as
    >>long as if you had done it yourself?
    >>
    >> --
    >> Don Guillett

    >
    > Don,
    >
    > Of course, your right. Teaching how to fish is better than giving fish
    > away. I'm here learning Excel, too, and I get excited when I can solve.
    > It's also very interesting to see how many different solutions and
    > variations come up. Moderation....
    >
    > Beege
    >
    >
    >




  10. #10
    CLR
    Guest

    Re: returning specific text only

    Could be.........these are relatively long formulas and may "wrap" when
    copying and pasting.....you may need to re-type if it don't all copy into one
    cell.

    Vaya con Dios,
    Chuck, CABGx3



    "Jane" wrote:

    > hmmm, tried both but got the #VALUE error. Is that a function of copying
    > from here to my spreadsheet? Do I need to type our the formula?
    >
    > "CLR" wrote:
    >
    > > =(MID(A1,FIND("ALLOC",A1,1),FIND("AP:",A1,1)-FIND("ALLOC",A1,1)))
    > >
    > > and if you want the colon at the end.....
    > >
    > > =(MID(A1,FIND("ALLOC",A1,1),FIND("AP:",A1,1)-FIND("ALLOC",A1,1)))&":"
    > >
    > > Vaya con Dios,
    > > Chuck, CABGx3
    > >
    > >
    > >
    > > "Jane" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > here is my text strong:
    > > > PO: Trans:DC:MMU - DO NOT BREAKTICKET:ALLOC:RE ORDER OF # 103157131,
    > > > 101915744. MMU - DO NOT BREAKAP:
    > > >
    > > > I want to return text starting with ALLOC but stop at and not include AP.
    > > >
    > > > thank you in advance, jane

    > >
    > >
    > >


  11. #11
    Don Guillett
    Guest

    Re: returning specific text only

    this may be of help

    Sub FixLongFormulas() 'goto a remote area of ws & select 1st line
    x = ActiveCell.Row
    y = ActiveCell.Column
    z = ActiveCell.End(xlDown).Row
    For Each C In Range(Cells(x, y), Cells(z, y))
    mstr = mstr & C
    Next
    Cells(x - 1, y) = mstr
    End Sub

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "CLR" <[email protected]> wrote in message
    news:[email protected]...
    > Could be.........these are relatively long formulas and may "wrap" when
    > copying and pasting.....you may need to re-type if it don't all copy into
    > one
    > cell.
    >
    > Vaya con Dios,
    > Chuck, CABGx3
    >
    >
    >
    > "Jane" wrote:
    >
    >> hmmm, tried both but got the #VALUE error. Is that a function of copying
    >> from here to my spreadsheet? Do I need to type our the formula?
    >>
    >> "CLR" wrote:
    >>
    >> > =(MID(A1,FIND("ALLOC",A1,1),FIND("AP:",A1,1)-FIND("ALLOC",A1,1)))
    >> >
    >> > and if you want the colon at the end.....
    >> >
    >> > =(MID(A1,FIND("ALLOC",A1,1),FIND("AP:",A1,1)-FIND("ALLOC",A1,1)))&":"
    >> >
    >> > Vaya con Dios,
    >> > Chuck, CABGx3
    >> >
    >> >
    >> >
    >> > "Jane" <[email protected]> wrote in message
    >> > news:[email protected]...
    >> > > here is my text strong:
    >> > > PO: Trans:DC:MMU - DO NOT BREAKTICKET:ALLOC:RE ORDER OF # 103157131,
    >> > > 101915744. MMU - DO NOT BREAKAP:
    >> > >
    >> > > I want to return text starting with ALLOC but stop at and not include
    >> > > AP.
    >> > >
    >> > > thank you in advance, jane
    >> >
    >> >
    >> >




+ 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