A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

how do I remove line breaks from several cells?



 
 
Thread Tools Display Modes
  #1  
Old May 14th, 2009, 10:29 PM posted to microsoft.public.excel.misc
JR
external usenet poster
 
Posts: 234
Default how do I remove line breaks from several cells?

I have imported labels (formatted as first/last name, address, city/state/zip
with line breaks between in each cell) and need utilize the "text to colums"
in order to mail merge. How do I remove the line breaks so that the "text to
colums" can recognize the delimiters?

OR

How do I get excel to recognize a line break as a delimiter?

OR

Any other suggestions to mail merge this information?
  #2  
Old May 14th, 2009, 11:32 PM posted to microsoft.public.excel.misc
Sheeloo
external usenet poster
 
Posts: 797
Default how do I remove line breaks from several cells?

Use the formula
=SUBSTITUTE(A1,CHAR(10),"^")
to replace newline with ^ then use it as the delimiter

You can use any character in place of ^ as long as it is not likely be part
of your data

"JR" wrote:

I have imported labels (formatted as first/last name, address, city/state/zip
with line breaks between in each cell) and need utilize the "text to colums"
in order to mail merge. How do I remove the line breaks so that the "text to
colums" can recognize the delimiters?

OR

How do I get excel to recognize a line break as a delimiter?

OR

Any other suggestions to mail merge this information?

  #3  
Old May 15th, 2009, 01:21 AM posted to microsoft.public.excel.misc
JR
external usenet poster
 
Posts: 234
Default how do I remove line breaks from several cells?

Where do I type this formula?


"Sheeloo" wrote:

Use the formula
=SUBSTITUTE(A1,CHAR(10),"^")
to replace newline with ^ then use it as the delimiter

You can use any character in place of ^ as long as it is not likely be part
of your data

"JR" wrote:

I have imported labels (formatted as first/last name, address, city/state/zip
with line breaks between in each cell) and need utilize the "text to colums"
in order to mail merge. How do I remove the line breaks so that the "text to
colums" can recognize the delimiters?

OR

How do I get excel to recognize a line break as a delimiter?

OR

Any other suggestions to mail merge this information?

  #4  
Old May 15th, 2009, 03:20 AM posted to microsoft.public.excel.misc
Sheeloo
external usenet poster
 
Posts: 797
Default how do I remove line breaks from several cells?

Assuming your data is in Col A then enter the formula in B1 and then copy
down...
You can then convert Col B to text

"JR" wrote:

Where do I type this formula?


"Sheeloo" wrote:

Use the formula
=SUBSTITUTE(A1,CHAR(10),"^")
to replace newline with ^ then use it as the delimiter

You can use any character in place of ^ as long as it is not likely be part
of your data

"JR" wrote:

I have imported labels (formatted as first/last name, address, city/state/zip
with line breaks between in each cell) and need utilize the "text to colums"
in order to mail merge. How do I remove the line breaks so that the "text to
colums" can recognize the delimiters?

OR

How do I get excel to recognize a line break as a delimiter?

OR

Any other suggestions to mail merge this information?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.