Replacing a hard line break in Excel

G

Guest

Hi,
I have a pretty large spreadsheet. The person that originally created it
didn't know how to use word wrap so they inserted hard breaks in cells to get
it to wrap. Now, I want to get rid of this. How can I replace a hard break?

Thank you.
 
V

vezerid

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

This will replace hard break with a space. If you want it completely
wiped out use "" instead of " ".

HTH
Kostis Vezerides
 
G

Guest

When I try to paste this code into the cell, it wipes out what's in the
entire cell. If I try to paste this code into the find and replace, it
doesn't allow me to. Am I doing this wrong?

Thanks.
 
D

Dave Peterson

This may work:

Select the range to fix
Edit|replace
what: ctrl-j
with: (spacebar) (or whatever you want)
replace all.

This edit|Replace will fail on cells that have lots and lots of characters,
though.
 
G

Guest

That worked, thank you.

Dave Peterson said:
This may work:

Select the range to fix
Edit|replace
what: ctrl-j
with: (spacebar) (or whatever you want)
replace all.

This edit|Replace will fail on cells that have lots and lots of characters,
though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top