+ Reply to Thread
Results 1 to 6 of 6

Is there a way I can split last name first name in one cell

  1. #1
    PeterM
    Guest

    Is there a way I can split last name first name in one cell

    I just got a list of customers we need to write about a new store opening.
    However, I noticed that the first cell contained the last name of the
    customer, then it has a comma, and then it has the first name. How can I
    change that to last name in one cell and first name in another.I would of
    course buy the program that will do that if there is no way to change that
    w/o a special program. O yes yes, how about stripping the duplicates out of
    the list, is there a way to do that as well. I'm an old guy, that used
    excel for a while, but I can't remember anything anymore,
    honestly...........Any help is appreciated............Peter


  2. #2
    Ron Coderre
    Guest

    RE: Is there a way I can split last name first name in one cell

    Before trying anything complicated, this might work for you:

    1)If there is data to the right of the names column, copy the column to a
    new sheet
    2)Select the list
    3)Data>Text to columns
    Delimited........[Next]
    Check Comma, Space, and Treat consecutive delimters as one
    Click the [Finish] button.

    Does that help?

    Ron



    --
    Regards,
    Ron


    "PeterM" wrote:

    > I just got a list of customers we need to write about a new store opening.
    > However, I noticed that the first cell contained the last name of the
    > customer, then it has a comma, and then it has the first name. How can I
    > change that to last name in one cell and first name in another.I would of
    > course buy the program that will do that if there is no way to change that
    > w/o a special program. O yes yes, how about stripping the duplicates out of
    > the list, is there a way to do that as well. I'm an old guy, that used
    > excel for a while, but I can't remember anything anymore,
    > honestly...........Any help is appreciated............Peter
    >
    >


  3. #3
    PeterM
    Guest

    Re: Is there a way I can split last name first name in one cell

    I will try that as soon as I get to work, many many thanks Ron, I will
    report back.....Peter

    "Ron Coderre" <ronSKIPTHIScoderre@bigfoot.com> wrote in message
    news:E42284EC-3CBD-4A01-BB4D-F9A04FEAC56F@microsoft.com...
    > Before trying anything complicated, this might work for you:
    >
    > 1)If there is data to the right of the names column, copy the column to a
    > new sheet
    > 2)Select the list
    > 3)Data>Text to columns
    > Delimited........[Next]
    > Check Comma, Space, and Treat consecutive delimters as one
    > Click the [Finish] button.
    >
    > Does that help?
    >
    > Ron
    >
    >
    >
    > --
    > Regards,
    > Ron
    >
    >
    > "PeterM" wrote:
    >
    >> I just got a list of customers we need to write about a new store
    >> opening.
    >> However, I noticed that the first cell contained the last name of the
    >> customer, then it has a comma, and then it has the first name. How can I
    >> change that to last name in one cell and first name in another.I would of
    >> course buy the program that will do that if there is no way to change
    >> that
    >> w/o a special program. O yes yes, how about stripping the duplicates out
    >> of
    >> the list, is there a way to do that as well. I'm an old guy, that used
    >> excel for a while, but I can't remember anything anymore,
    >> honestly...........Any help is appreciated............Peter
    >>
    >>



  4. #4
    joeu2004@hotmail.com
    Guest

    Re: Is there a way I can split last name first name in one cell

    PeterM wrote:
    > I noticed that the first cell contained the last name of the
    > customer, then it has a comma, and then it has the first name. How can I
    > change that to last name in one cell and first name in another.


    If A1 contains the "last,first" text, then:

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

    yields the last name, and

    TRIM(RIGHT(A1,LEN(A1) - FIND(",",A1)))

    yields the first name.

    The use of TRIM() is defensive in the first case.
    It is probably needed in the second case, unless
    you know there is no space after the comma.


  5. #5
    PeterM
    Guest

    Re: Is there a way I can split last name first name in one cell

    Hello Ron, it worked , I can't tell you how much I appreciate you for your
    wonderful help............May something real good happen to you soon, you
    made it happen for me.............Peter

    "PeterM" <pmaston@comcast.net> wrote in message
    news:yaadnQsawIdLigLfRVn-tQ@comcast.com...
    >I will try that as soon as I get to work, many many thanks Ron, I will
    >report back.....Peter
    >
    > "Ron Coderre" <ronSKIPTHIScoderre@bigfoot.com> wrote in message
    > news:E42284EC-3CBD-4A01-BB4D-F9A04FEAC56F@microsoft.com...
    >> Before trying anything complicated, this might work for you:
    >>
    >> 1)If there is data to the right of the names column, copy the column to a
    >> new sheet
    >> 2)Select the list
    >> 3)Data>Text to columns
    >> Delimited........[Next]
    >> Check Comma, Space, and Treat consecutive delimters as one
    >> Click the [Finish] button.
    >>
    >> Does that help?
    >>
    >> Ron
    >>
    >>
    >>
    >> --
    >> Regards,
    >> Ron
    >>
    >>
    >> "PeterM" wrote:
    >>
    >>> I just got a list of customers we need to write about a new store
    >>> opening.
    >>> However, I noticed that the first cell contained the last name of the
    >>> customer, then it has a comma, and then it has the first name. How can I
    >>> change that to last name in one cell and first name in another.I would
    >>> of
    >>> course buy the program that will do that if there is no way to change
    >>> that
    >>> w/o a special program. O yes yes, how about stripping the duplicates out
    >>> of
    >>> the list, is there a way to do that as well. I'm an old guy, that used
    >>> excel for a while, but I can't remember anything anymore,
    >>> honestly...........Any help is appreciated............Peter
    >>>
    >>>

    >



  6. #6
    PeterM
    Guest

    Re: Is there a way I can split last name first name in one cell

    THank you Joe for your reply...........Ron's answer was so easy for me, it
    worked right away. I do appreciate your reply very much.............Peter
    <joeu2004@hotmail.com> wrote in message
    news:1117723297.360472.278420@f14g2000cwb.googlegroups.com...
    > PeterM wrote:
    >> I noticed that the first cell contained the last name of the
    >> customer, then it has a comma, and then it has the first name. How can I
    >> change that to last name in one cell and first name in another.

    >
    > If A1 contains the "last,first" text, then:
    >
    > TRIM(LEFT(A1,FIND(",",A1) - 1))
    >
    > yields the last name, and
    >
    > TRIM(RIGHT(A1,LEN(A1) - FIND(",",A1)))
    >
    > yields the first name.
    >
    > The use of TRIM() is defensive in the first case.
    > It is probably needed in the second case, unless
    > you know there is no space after the comma.
    >



+ 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