Office for Mac Issues

Replace a Character with a Line Break in Excel for Mac

Anum MushtaqAnum Mushtaq Nov 25, 2026 868 views

Question details

Replace a chosen character in Excel cell text with a line break when keyboard shortcuts in Find and Replace do not work.

Replace a Character with a Line Break in Excel for Mac
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.
Before you start

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.

Solution 1Recommended

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.

1
Enter the formula

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.

2
Show the line breaks

Select the formula cell and choose Home > Wrap Text. Adjust the row height if the lines are not all visible.

3
Apply the formula to other rows

Drag the fill handle from the formula cell down alongside the remaining source cells.

4
Keep the results as text

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.

Use SUBSTITUTE to replace the character with a line break
All matching characters are replaced: SUBSTITUTE replaces every occurrence of the specified character in each cell. Depending on your regional settings, Excel may require semicolons instead of commas between formula arguments.
Free Microsoft Office alternative

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.

Use SUBSTITUTE and CHAR formulas to insert line breaks in spreadsheet textCompatible with Microsoft Excel formats including XLSX and XLSFamiliar spreadsheet interface for an easier transitionFree and lightweight office suite
microsoft office alternative - wps office

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.