Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 ? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 ? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 ? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
remove hyperlinks in a worksheet all in the same time | Excel Worksheet Functions | |||
Newlines in csv files | Excel Discussion (Misc queries) | |||
How can you remove all objects in a worksheet at once? | Excel Discussion (Misc queries) | |||
Remove "read-only" from a worksheet | Excel Discussion (Misc queries) | |||
remove Page 1 from worksheet | Excel Discussion (Misc queries) |