+ Reply to Thread
Results 1 to 4 of 4

Thread: Using a function to pull everything right/left of a comma

  1. #1
    Registered User
    Join Date
    07-09-2007
    Posts
    54

    Using a function to pull everything right/left of a comma

    Currently when I pull names from a program to excell I am getting a list of names that have the first and last name all in one cell in the format of (lastname,firstname). I need to split this into two columns. Is there a function that will find the comma and pull everything to the right or left of it? Thanks in advance.

    Jason

  2. #2
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007, 2010
    Posts
    25,770
    Data > Text to Columns, Delimited, check Comma.

  3. #3
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636
    Select the column and go to Data|Text to Columns and select Delimited form 1st window.. click Next and select "comma" from Delimiters options...

    Click Finish.

    This will split the column into 2 columns...
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  4. #4
    Registered User
    Join Date
    07-09-2007
    Posts
    54
    DUH, thanks guys. Someone at work asked me for a function for this and I don't use text to columns much so I didn't even think about it. Thank you for your help.

+ 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.2.0