+ Reply to Thread
Results 1 to 6 of 6

Extracting a string

  1. #1
    Peter Rooney
    Guest

    Extracting a string

    OK, I'm stumped.

    I have a series of entries in the form:

    Artist - Title.DOC
    I can write a formula easily enough to seperate out the artist part
    =LEFT(C10,FIND("-",C10)-2)

    But I can't for the life of me work out how to extract the title minus the
    ..DOC extension.
    Can anyone help, please?

    Thanks in advance

    Pete



  2. #2
    Kevin B
    Guest

    RE: Extracting a string

    I'm not sure this is the most elegant way of doing it, but it does work.

    =LEFT(TRIM(RIGHT(C10,LEN(C10)-FIND("-",C10,1))),LEN(TRIM(RIGHT(C10,LEN(C10)-FIND("-",C10,1))))-4)
    --
    Kevin Backmann


    "Peter Rooney" wrote:

    > OK, I'm stumped.
    >
    > I have a series of entries in the form:
    >
    > Artist - Title.DOC
    > I can write a formula easily enough to seperate out the artist part
    > =LEFT(C10,FIND("-",C10)-2)
    >
    > But I can't for the life of me work out how to extract the title minus the
    > .DOC extension.
    > Can anyone help, please?
    >
    > Thanks in advance
    >
    > Pete
    >
    >


  3. #3
    Peter Rooney
    Guest

    RE: Extracting a string

    Kevin,

    Elegant or not, it's exactly what I needed!

    Thank you very much :o)

    Pete



    "Kevin B" wrote:

    > I'm not sure this is the most elegant way of doing it, but it does work.
    >
    > =LEFT(TRIM(RIGHT(C10,LEN(C10)-FIND("-",C10,1))),LEN(TRIM(RIGHT(C10,LEN(C10)-FIND("-",C10,1))))-4)
    > --
    > Kevin Backmann
    >
    >
    > "Peter Rooney" wrote:
    >
    > > OK, I'm stumped.
    > >
    > > I have a series of entries in the form:
    > >
    > > Artist - Title.DOC
    > > I can write a formula easily enough to seperate out the artist part
    > > =LEFT(C10,FIND("-",C10)-2)
    > >
    > > But I can't for the life of me work out how to extract the title minus the
    > > .DOC extension.
    > > Can anyone help, please?
    > >
    > > Thanks in advance
    > >
    > > Pete
    > >
    > >


  4. #4
    Bob Phillips
    Guest

    Re: Extracting a string

    =MID(C10,FIND("-",C10)+2,FIND(".",C10)-FIND("-",C10)-2)

    --

    HTH

    Bob Phillips

    (replace xxxx in the email address with gmail if mailing direct)

    "Kevin B" <kbackmann@sbcglobal.net.spamBgone> wrote in message
    news:1C572E22-D7CF-43A0-8065-6C8399DC0F50@microsoft.com...
    > I'm not sure this is the most elegant way of doing it, but it does work.
    >
    >

    =LEFT(TRIM(RIGHT(C10,LEN(C10)-FIND("-",C10,1))),LEN(TRIM(RIGHT(C10,LEN(C10)-
    FIND("-",C10,1))))-4)
    > --
    > Kevin Backmann
    >
    >
    > "Peter Rooney" wrote:
    >
    > > OK, I'm stumped.
    > >
    > > I have a series of entries in the form:
    > >
    > > Artist - Title.DOC
    > > I can write a formula easily enough to seperate out the artist part
    > > =LEFT(C10,FIND("-",C10)-2)
    > >
    > > But I can't for the life of me work out how to extract the title minus

    the
    > > .DOC extension.
    > > Can anyone help, please?
    > >
    > > Thanks in advance
    > >
    > > Pete
    > >
    > >




  5. #5
    Peter Rooney
    Guest

    Re: Extracting a string

    Bob,

    Splendid!

    Thank you very much

    Pete



    "Bob Phillips" wrote:

    > =MID(C10,FIND("-",C10)+2,FIND(".",C10)-FIND("-",C10)-2)
    >
    > --
    >
    > HTH
    >
    > Bob Phillips
    >
    > (replace xxxx in the email address with gmail if mailing direct)
    >
    > "Kevin B" <kbackmann@sbcglobal.net.spamBgone> wrote in message
    > news:1C572E22-D7CF-43A0-8065-6C8399DC0F50@microsoft.com...
    > > I'm not sure this is the most elegant way of doing it, but it does work.
    > >
    > >

    > =LEFT(TRIM(RIGHT(C10,LEN(C10)-FIND("-",C10,1))),LEN(TRIM(RIGHT(C10,LEN(C10)-
    > FIND("-",C10,1))))-4)
    > > --
    > > Kevin Backmann
    > >
    > >
    > > "Peter Rooney" wrote:
    > >
    > > > OK, I'm stumped.
    > > >
    > > > I have a series of entries in the form:
    > > >
    > > > Artist - Title.DOC
    > > > I can write a formula easily enough to seperate out the artist part
    > > > =LEFT(C10,FIND("-",C10)-2)
    > > >
    > > > But I can't for the life of me work out how to extract the title minus

    > the
    > > > .DOC extension.
    > > > Can anyone help, please?
    > > >
    > > > Thanks in advance
    > > >
    > > > Pete
    > > >
    > > >

    >
    >
    >


  6. #6
    Kevin B
    Guest

    Re: Extracting a string

    Yo, Bob!

    Thanks for the very cool streamlined follow-up. For some one with marginal
    typing skills, less is most definitely more.
    --
    Kevin Backmann


    "Bob Phillips" wrote:

    > =MID(C10,FIND("-",C10)+2,FIND(".",C10)-FIND("-",C10)-2)
    >
    > --
    >
    > HTH
    >
    > Bob Phillips
    >
    > (replace xxxx in the email address with gmail if mailing direct)
    >
    > "Kevin B" <kbackmann@sbcglobal.net.spamBgone> wrote in message
    > news:1C572E22-D7CF-43A0-8065-6C8399DC0F50@microsoft.com...
    > > I'm not sure this is the most elegant way of doing it, but it does work.
    > >
    > >

    > =LEFT(TRIM(RIGHT(C10,LEN(C10)-FIND("-",C10,1))),LEN(TRIM(RIGHT(C10,LEN(C10)-
    > FIND("-",C10,1))))-4)
    > > --
    > > Kevin Backmann
    > >
    > >
    > > "Peter Rooney" wrote:
    > >
    > > > OK, I'm stumped.
    > > >
    > > > I have a series of entries in the form:
    > > >
    > > > Artist - Title.DOC
    > > > I can write a formula easily enough to seperate out the artist part
    > > > =LEFT(C10,FIND("-",C10)-2)
    > > >
    > > > But I can't for the life of me work out how to extract the title minus

    > the
    > > > .DOC extension.
    > > > Can anyone help, please?
    > > >
    > > > Thanks in advance
    > > >
    > > > Pete
    > > >
    > > >

    >
    >
    >


+ 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