Forum Discussion
How to replace without destroying formatting and in-cell-linebreak?
upload file here and share the link.
When you apply char(10) & "例子",you should set cell wrap text as well.
Peter has mentioned it before.
Mar 13 2024 06:08 PM
Are you sure that the cells in question have 'Wrap Text' selected in each case
https://filetransfer.io/data-package/BFBuo9vI#link Thx for the link.
What I mean linebreak is the alt+enter linebreak, like
Aaaaaaaa
aaaaaaaa
aaaaaaaa
(Three lines because I clicked enter)
not wrap like
Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
(Many “lines” because of being too long)
I’ve set wrap in the question’s file.
- peiyezhuMar 14, 2024Bronze Contributor
Hi,
Please check the attachment.
Warp Text
- peiyezhuMar 14, 2024Bronze Contributor
=TEXTJOIN(CHAR(10),,LET(a,TEXTSPLIT(A1,CHAR(10)),IF(RIGHT(a)=":","",a)))
instead of
=TEXTJOIN(CHAR(10),,LET(a,TEXTSPLIT(A2,CHAR(10)),IF(RIGHT(a)=":","",a)))
: not :(Chinese)
- g-00000Mar 15, 2024Copper ContributorOh yes indeed. Sorry didn’t change:to: in 1.xlsx.
But this still doesn’t fix the problem of destroying formatting.