Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default 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 ?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default 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 ?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default 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 ?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
remove hyperlinks in a worksheet all in the same time Kent Excel Worksheet Functions 7 March 10th 08 08:22 PM
Newlines in csv files tshad Excel Discussion (Misc queries) 3 April 17th 07 01:19 AM
How can you remove all objects in a worksheet at once? rjmills18 Excel Discussion (Misc queries) 1 February 5th 06 09:37 PM
Remove "read-only" from a worksheet Randy1120 Excel Discussion (Misc queries) 1 October 5th 05 05:40 PM
remove Page 1 from worksheet Goofy Excel Discussion (Misc queries) 1 April 12th 05 08:34 PM


All times are GMT +1. The time now is 07:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"