Replace a Character with a Line Break in Excel for Mac
Question details
Replace a chosen character in Excel cell text with a line break when keyboard shortcuts in Find and Replace do not work.

- Product
- Microsoft Excel for Mac
- Device & OS
- macOS
- Scenario
- A user wants to split text within a cell at a unique character.
- Observed behavior
- Excel for Mac may not accept Ctrl+J or similar shortcuts in the Find and Replace dialog.
Identify the character you want to replace and confirm which cells contain it. Make sure there is an empty column available if you use the formula method.
Use SUBSTITUTE to replace the character with a line break
Use a formula when Excel for Mac does not accept a line-break shortcut in the Replace dialog.
In an empty cell next to your data, enter =SUBSTITUTE(A1,"|",CHAR(10)), replacing A1 with the source cell and | with the character you want to replace.
Select the formula cell and choose Home > Wrap Text. Adjust the row height if the lines are not all visible.
Drag the fill handle from the formula cell down alongside the remaining source cells.
If you no longer need the formulas, copy the result cells and use Home > Paste > Paste Special > Values. Paste over the original cells only if you want to replace their contents.

Test line-break shortcuts in a new Excel workbook
Use a new workbook to check whether the behavior is specific to your source file.
Work with Excel spreadsheets in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface. Open compatible Excel files and use formulas to work with cell text while moving between office suites.

Frequently Asked Questions
Why does Ctrl+J not work in Excel for Mac Find and Replace?
Shortcut behavior can depend on the Excel version, keyboard layout, or the dialog itself. Test Control+J in Edit > Find > Replace in a new workbook to help narrow down the cause.
What formula replaces a pipe with a line break?
Enter =SUBSTITUTE(A1,"|",CHAR(10)) in an empty cell, then select Home > Wrap Text to display the resulting lines.
Why can't I see the line breaks produced by my formula?
Select the result cells and turn on Home > Wrap Text. If necessary, increase the row height so all lines are visible.
How can I keep the results without keeping the formulas?
Copy the formula results, then use Home > Paste > Paste Special > Values. Pasting values over the original cells replaces their existing contents.




