+ Reply to Thread
Results 1 to 4 of 4

Removing Returns

  1. #1
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387

    Removing Returns

    Hi,

    I have some cells full of user entered information that has returns in it, so that it's multiple lines long. What's the best way to remove returns from a string?

    Thanks!
    Last edited by yawnzzzz; 01-19-2010 at 05:12 PM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Removing Returns

    Perhaps like this?

    =SUBSTITUTE(A1,CHAR(10)," ")

  3. #3
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Removing Returns

    Try running this macro on selected cells.

    Please Login or Register  to view this content.
    You can chose choose a different ReplaceCharacter if you wish.
    Martin

  4. #4
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387

    Re: Removing Returns

    Perfect. Thanks!

    I just switched it up to make it a function:
    Please Login or Register  to view this content.

+ 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