![]() |
How to remove newlines from worksheet
We have a csv file which was exported by a database application. One column
contains text which includes newline characters (i.e carriage return+linefeed characters). Is it possible to remove these newline characters from all cells in the column, without having to edit the cells manually ? |
How to remove newlines from worksheet
Edit/ Replace/ Alt-0010
Replace with/ whatever you want in place of the Alt-0010 Or =SUBSTITUTE(A1,CHAR(10)," ") [assuming that you want to replace by a space; modify to suit] If your CR/LF isn't a CHAR(10), check what it is, perhaps CHAR(13). You can find what it is by using =CODE(MID(A1,position,1)) where position is (for example) 15 if your CR/LF is the 15th character in the cell. -- David Biddulph "Bob Waite" wrote in message ... We have a csv file which was exported by a database application. One column contains text which includes newline characters (i.e carriage return+linefeed characters). Is it possible to remove these newline characters from all cells in the column, without having to edit the cells manually ? |
How to remove newlines from worksheet
Thank you David. I have managed to solve my problem using the SUBSTITUTE
function, as you suggested :-) "David Biddulph" wrote: Edit/ Replace/ Alt-0010 Replace with/ whatever you want in place of the Alt-0010 Or =SUBSTITUTE(A1,CHAR(10)," ") [assuming that you want to replace by a space; modify to suit] If your CR/LF isn't a CHAR(10), check what it is, perhaps CHAR(13). You can find what it is by using =CODE(MID(A1,position,1)) where position is (for example) 15 if your CR/LF is the 15th character in the cell. -- David Biddulph "Bob Waite" wrote in message ... We have a csv file which was exported by a database application. One column contains text which includes newline characters (i.e carriage return+linefeed characters). Is it possible to remove these newline characters from all cells in the column, without having to edit the cells manually ? |
All times are GMT +1. The time now is 09:49 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com