Forum Discussion
How to replace without destroying formatting and in-cell-linebreak?
Have you tested the formula?
I recommend you upload a test file.
As far as I know the formular provided by wdx223_Daniel keep line break at least.
Other format, i.g. bold font or blue color font may disappear.
If you want precise the format,I guess you need parse and formatting .
Want to upload file, but this website says "The file type (.xlsx) is not supported". I'll describe by text:
Line breaks are alt+enter.
In the question's file, line breaks were made through
=D1&CHAR(10)&"例:"&E1&CHAR(10)&"近:"&F1&CHAR(10)&"派:"&G1
After combining the previous cells together, I added formatting manually.
- peiyezhuMar 13, 2024Bronze Contributor
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.
replied to g-00000Mar 13 2024 06:08 PM
Are you sure that the cells in question have 'Wrap Text' selected in each case
- g-00000Mar 14, 2024Copper Contributor
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