Is there an easy way to remove the line breaks within each cell?
Each cell on column E, has extra line that I am having to manually remove, any easy to remove all.
Easiest method:
How about following sample? This sample supposes that the line break is \r\n
and \n
.
\r\n
, when the number of \r\n
is more than 2, it is modified to char(10)
.=IF(REGEXMATCH(E1, "\r\n"),REGEXREPLACE(E1, "(\r\n){2,}", char(10)),REGEXREPLACE(E1, "(\n){2,}", char(10)))
If you want to remove all of the line break, you can use =CLEAN(A1)
. In this case, the result of the result sheet becomes sample1sample2sample3sample4sample5
.
If this was not helpful for you, I'm sorry.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With