Forum Discussion
DennisGalon
Apr 05, 2024Copper Contributor
Find And Replace to Add Line Breaks within Cells
Within a Cell Alt + Enter introduces an invisible Line Break or New Line Code. Believe that code is Char(10) How do I use Find & Replace to Find characters (let's say $$) and replace this with t...
RobertR2060
Aug 25, 2024Copper Contributor
Do you happen to know the Ctrl+J equivalent for Excel for Mac, version 16.88
CaptGreytower
Oct 30, 2025Copper Contributor
I have Excel for Mac. Found this answer is an old thread. It worked.:
But use CHAR(10) if you want a line break:
ie. B1: =SUBSTITUTE(A1,"$$",CHAR(10)).
will replace $$ with a line break in the new column
The simplest way (though with a large spreadsheet, it may still not be simple) is to insert a blank column next to cells containing line breaks. In that column (say, column B), enter
B1: =SUBSTITUTE(A1,CHAR(13),"")
or
B1: =SUBSTITUTE(A1,CHAR(13)," ")
depending on whether you want to keep a space between the end of one line and the beginning of another.
Copy down as far as required. Select the column. Copy it. Select the original column. Choose Edit/Paste Special, selecting the Values radio button.
Delete the column you inserted.
https://learn.microsoft.com/en-us/answers/questions/4770312/how-can-i-find-replace-line-breaks-in-mac-2008-exc?forum=msoffice-all&referrer=answers