=SUBSTITUTE(A1,CHAR(10)&CHAR(10),CHAR(10))
=SUBSTITUTE(SUBSTITUTE(A1,CHAR(10),CHAR(10)&CHAR(13)),CHAR(13)&CHAR(10),"")
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,CHAR(10),CHAR(10)&CHAR(13)),CHAR(13)&CHAR(10),"");CHAR(13),"")
One small issue, when there is more than one empty line, the formula doesn't remove them all
Can we change this in the formula?
to clean the remaining carriage returns.