+ Reply to Thread
Results 1 to 3 of 3

how will I get first two words from a Text

Hybrid View

  1. #1
    Registered User
    Join Date
    03-31-2011
    Location
    Kolkata,India
    MS-Off Ver
    Excel 2003
    Posts
    22

    how will I get first two words from a Text

    Hi All,

    I have a list of company names. the company names looks like below:

    Harland Financial Solutions
    Lee Kum Kee (USA) Inc
    El Monte City School District
    The Heffernan Insurance Brokers

    I want to get only first two words like below

    Harland Financial
    Lee Kum
    El Monte
    The Heffernan

    thanks,

    Niladri

  2. #2
    Registered User
    Join Date
    09-22-2009
    Location
    Cornwall, England
    MS-Off Ver
    Excel 2010 (Work) O365Home (Home)
    Posts
    94

    Re: how will I get first two words from a Text

    post deleted
    Last edited by Cookstein2; 07-27-2011 at 12:22 PM. Reason: delete

  3. #3
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,256

    Re: how will I get first two words from a Text

    Either of these should do it:
    =LEFT(A1,SEARCH(" ",A1&"  ",SEARCH(" ",A1&" ")+1)-1)
    =LEFT(A1,SEARCH("||",SUBSTITUTE(A1&"  "," ","||",2))-1)
    Hope that helps,

    Colin

    RAD Excel Blog

+ 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