+ Reply to Thread
Results 1 to 5 of 5

Replace comma with new line characters

  1. #1
    Registered User
    Join Date
    07-12-2013
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    3

    Replace comma with new line characters

    Hi all I have a string in a column like so surgery, radiology, behavior health, ambulatory

    I need to remove the commas and and replace with new line and store this in the same single cell so it looks like

    surgery
    radiology
    behavior health
    ambulatory

    Thank you for any advice much appreciated...

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Replace comma with new line characters

    Use the Find/Replace tool in excel..

    Highlight all the cells you want to do this on.
    go to the Find/Replace tool
    Find what: ", " <--comma space without the qotes
    Replace with: Hold the ALT Key, and type 010 on the number keypad
    Replace All

    Hope that helps.

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Replace comma with new line characters

    OahuBrew,

    Welcome to the forum!
    You can use this formula, then make sure "Wrap Text" is enabled:
    =SUBSTITUTE(A1,", ",CHAR(10))

    Afterwards, if you like, you can copy -> paste special -> values
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    07-12-2013
    Location
    Boston
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Replace comma with new line characters

    Awesome you guys rule !!!

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Replace comma with new line characters

    You're welcome.

+ 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