+ Reply to Thread
Results 1 to 4 of 4

Left formula that takes the first two words

  1. #1
    Forum Contributor
    Join Date
    07-31-2009
    Location
    Lincoln, USA
    MS-Off Ver
    Excel 2007 and excel 2010
    Posts
    142

    Left formula that takes the first two words

    Hello all, What I'm looking to do is take a string of text and export just the first 2 words into an adjacent cell.

    What I have is a data set where a person first and last name is the first two words in a sentance and I want to export just the name to another cell.

    Example = Justin Fry is good at his job and is great to work with

    in Cell A1 i would like to just see Justin Fry

    The problem is all the names have different letter counts so I can't do just a simple Left 8 for example.

    I have about 2k lines of text like this and I really don't want to remove the first and last names one by one.

    thoughts?

    thanks in advance.
    Last edited by fireguy7; 01-08-2013 at 04:22 PM.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Left formula that takes the first two words

    Try

    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    07-31-2009
    Location
    Lincoln, USA
    MS-Off Ver
    Excel 2007 and excel 2010
    Posts
    142

    Re: Left formula that takes the first two words

    Close Ace_xl this formula gives me the first name but I need the last name as well.

    What I did to fix this is used

    =TRIM(LEFT(A1,FIND("#",SUBSTITUTE(A1," ","#",3)))

    This worked perfectly so big thanks.

  4. #4
    Forum Contributor
    Join Date
    07-31-2009
    Location
    Lincoln, USA
    MS-Off Ver
    Excel 2007 and excel 2010
    Posts
    142

    Re: Left formula that takes the first two words

    Just want to amend my above comment. The reason why I had to switch from 2 to 3 is because there was an extra space at the start. without the space Axe_xl formula worked perfect. FYI

+ 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