+ Reply to Thread
Results 1 to 5 of 5

Can I extract certain words from inside a cell?

  1. #1
    Registered User
    Join Date
    01-12-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    97

    Can I extract certain words from inside a cell?

    I have a cell that contains a first name and last name a "-" and then a bit of information about that name. The information differs from cell to cell.

    I just need the first and last name.

    Is there a formula that will take out the first 2 words from each cell (which would be the first and last name)?

    Thanks.
    Last edited by kufta4; 03-30-2011 at 11:01 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Can I extract certain words from inside a cell?

    =LEFT(A1,FIND("-",A1)-2)

    (Assuming your name is in A1, and there is a space between the surname and the "-")

  3. #3
    Registered User
    Join Date
    01-12-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    97

    Re: Can I extract certain words from inside a cell?

    Quote Originally Posted by brokenbiscuits View Post
    =LEFT(A1,FIND("-",A1)-2)

    (Assuming your name is in A1, and there is a space between the surname and the "-")
    I got an error. For example, this is in A1

    Mike Alexander – Los Angeles Raiders, Buffalo Bills – wide receiver

    I need Mike Alexander to be in B1. There are about 400 lines so I am hoping there is a formula instead of having to do it manually.

  4. #4
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Can I extract certain words from inside a cell?

    Just a different kind of dash:

    =LEFT(A1,FIND("–",A1)-2)

  5. #5
    Registered User
    Join Date
    01-12-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    97

    Re: Can I extract certain words from inside a cell?

    Quote Originally Posted by brokenbiscuits View Post
    Just a different kind of dash:

    =LEFT(A1,FIND("–",A1)-2)
    Wow, that would have taken me a billion years to figure out it was a different king of dash on my own.

    That worked and thank you very much. This site is awesome.

+ 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