19
6
I've imported some data into Excel (from a text file) and it contains some sort of newline characters. It looks like this initially:
If I hit F2 (to edit) then Enter (to save changes) on each of the cells with a newline (without actually editing anything), Excel automatically changes the layout to look like this:
I don't want these newlines characters here, as it messes up data processing further down the track. How can I do a search for these to detect more of them? The usual search function doesn't accept an enter character as a search character.
1
Have a look at this too: 3 ways to remove carriage returns in Excel: formulas, VBA macro, find&replace dialog
– danicotra – 2017-06-10T08:51:36.877Are you able to post a sample workbook somewhere online? Removing linebreaks is possible using Find, or VBA, but it would be good to see exactly what the characters are, and test the replacement works as you desire
– brettdj – 2011-12-21T02:59:42.963If you could provide an answer for finding the linebreaks that can be inserted by typing alt-Enter while editing a cell, I think that would solve it. If not, I might be able to find a way to put the worksheet online later. Thanks! – Highly Irregular – 2011-12-21T03:24:59.130