+ Reply to Thread
Results 1 to 4 of 4

Extract first two words of a cell

  1. #1
    Registered User
    Join Date
    03-18-2013
    Location
    Pittsburgh
    MS-Off Ver
    Excel 2003
    Posts
    30

    Extract first two words of a cell

    I have a cell that reads "Sidney Crosby, C" and I want it to create a formula to translate that to "Sidney Crosby" How would I do that?

    I used the formula below which I found online to do something similar but it's bringing that comma with it.
    =LEFT(C77,(FIND("|",SUBSTITUTE(C77," ","|",2)))-1)
    Last edited by letangerang58; 09-05-2013 at 10:07 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Extract first two words of a cell

    If there will always be a comma, use that...

    =left(C77,search(",",C77,1)-1)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    03-18-2013
    Location
    Pittsburgh
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Extract first two words of a cell

    thanks! that worked.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Extract first two words of a cell

    Happy to help and thanks for the feedback

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How can i extract specific words from a cell?
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 30
    Last Post: 06-17-2013, 12:27 PM
  2. Looking for appropriate function to extract words in excel cell
    By JayshreeJK in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-07-2012, 04:39 PM
  3. Extract particular words from a cell
    By DeepakS in forum Excel General
    Replies: 2
    Last Post: 08-22-2011, 08:58 AM
  4. Can I extract certain words from inside a cell?
    By kufta4 in forum Excel General
    Replies: 4
    Last Post: 03-30-2011, 11:01 AM
  5. Extract 1, 2 or 3 words from middle of text in a cell
    By Vinnie Chan in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-31-2010, 02:55 PM

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