+ Reply to Thread
Results 1 to 9 of 9

Separating contents with Comma

  1. #1
    Forum Contributor
    Join Date
    11-02-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    353

    Separating contents with Comma

    Hello again,
    I would like to ask help once more.
    Not sure how to do this.

    A1 = Trevayne, Andrew

    Is it possible to get a return

    A2 = Andrew

    What I basically want to do is removed the last name, the separator between the firstname
    and the last name is the comma ","
    Hope somebody would be able to help.

    Thanks in
    Last edited by Andrew.Trevayne; 12-04-2010 at 04:26 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: Separating contents with Comma

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

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    11-02-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    353

    Re: Separating contents with Comma

    Perfect! Thanks so much very very much ^^

  4. #4
    Forum Contributor
    Join Date
    11-02-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    353

    Re: Separating contents with Comma

    Hello ^^
    I have re-opened my post, i celebrated too soon haha!
    Apparently it is only working on my example.
    If I used a different name it's not working as it's supposed to be.

    Is it possible to get a return where all the words after the comma will be displayed?
    On my example:
    A1: Trevayne, Andrew
    A2: Andrew

    Which is working..
    But when I get longer names I dont get the whole result.
    For Example
    A1: Mohammad, Mohammad
    the result is only
    A2: Mohamm

    Is it possible to capture all the words succeeding the comma?
    Thanks again.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: Separating contents with Comma

    Please post the formula which is not working and the contents of the cell it is operating on.

    If the name you are checking is in cell A1, then it should work. Note that bot cell references are the same. I suspect that, in this case, the second reference is still A1.

    Regards

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: Separating contents with Comma

    Here, try this:

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    11-02-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    353

    Re: Separating contents with Comma

    Wow! That solved the thing. Thanks for the help guys, really appreciate it ^^

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Separating contents with Comma

    Just for the record, there was nothing wrong with the formula given by TMShucks.

    It worked just fine when I tried it for Mohammad, Mohammad

  9. #9
    Forum Contributor
    Join Date
    11-02-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    353

    Re: Separating contents with Comma

    Hi Cutter,
    I tried it again and got the right return, i dont understand why earlier i was getting a different result.
    Anyways both solution worked perfectly and I am very grateful for the continued help Im getting from the guys here. You all deserve a thank you from ordinary Excel user as myself.
    Thanks so much everyone. ^^

+ 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