+ Reply to Thread
Results 1 to 3 of 3

Extract text after a specified word

  1. #1
    Registered User
    Join Date
    12-09-2007
    Posts
    12

    Extract text after a specified word

    Hi,

    I have a list of names that contain a design name and the artist and looks like this

    Design 1 BY Artist 1

    What formula can I use to extract and separate all the data before and after the word BY so I have Design 1 in the 2nd column and Artist 1 in the 3rd column?

    Thanks in advance for any help

    Tahir

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Extract text after a specified word

    id just replace " by " with say ^ then use ^ as a delimiter in text to columns
    buy failing that
    in col b use
    =TRIM(LEFT(A1,SEARCH(" by ",A1)-1))
    and in c
    use
    =TRIM(RIGHT(A1,LEN(A1)-SEARCH(" by ",A1)-2)) note the spaces either side of "by" incase you had a name like "Trenby"
    Last edited by martindwilson; 01-24-2010 at 04:30 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    12-09-2007
    Posts
    12

    Re: Extract text after a specified word

    That works perfectly

    Thanks

+ 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