Document Editing Problems

Insert Line Breaks in Excel Cells with Find and Replace

Emma BrownEmma Brown Nov 12, 2026 869 views

Question details

Replace a character sequence, such as $$, with an in-cell line break in Excel.

Insert Line Breaks in Excel Cells with Find and Replace
Product
Microsoft Excel
Device & OS
not provided
Scenario
The user has cells containing a text marker and wants to convert every marker into the same line break created by Alt+Enter.
Observed behavior
The desired result is for the text after the marker to appear on a new line within the same cell.
Before you start

Make sure the cells that will contain multiple lines have Wrap Text enabled, so the inserted line breaks are visible. Identify the exact marker to replace, such as $$, before running Replace All.

Solution 1Recommended

Replace a text marker with an in-cell line break in Excel

Use this method when a consistent marker, such as $$, appears in one or more Excel cells and should become an Alt+Enter-style line break.

1
Open the Replace dialog

In Excel, press Ctrl+H to open the Find and Replace dialog box.

2
Enter the marker to find

In the Find what box, enter the character sequence to replace, such as $$.

3
Insert a line break in Replace with

Click in the Replace with box, then press Ctrl+J. The line-break character may not be visible in the box, but it is inserted.

4
Apply the replacement

Select Replace to review each match, or select Replace All to convert every matching marker in the current worksheet or selected range.

5
Show the new lines in cells

Select the affected cells and choose Home > Wrap Text if the lines do not display on separate rows within each cell.

Replace a text marker with an in-cell line break in Excel
Line breaks inserted: Each replaced marker becomes an in-cell line break, equivalent to manually editing a cell and pressing Alt+Enter.
WPS Spreadsheets

Replace Text Markers with Line Breaks in WPS Spreadsheets

WPS Spreadsheets lets you find a repeated marker and replace it with an in-cell line break, helping you format imported or structured text without editing every cell manually.

  1. 1. Open Find and Replace: Open the worksheet in WPS Spreadsheets and press Ctrl+H.
  2. 2. Set the search text: Enter the marker, such as $$, in the Find what field.
  3. 3. Add the replacement line break: Click the Replace with field and enter or paste an in-cell line break character.
  4. 4. Replace the markers: Click Replace All to update all matching markers, or use Replace to confirm each occurrence.
  5. 5. Enable wrapped text: Select the updated cells and use Home > Wrap Text to make every inserted line visible.
Replace repeated text markers across a worksheet in a few actionsUse Wrap Text to display multiple lines clearly inside one spreadsheet cellOpen, edit, and save Microsoft Excel .xlsx and .xls filesUse a familiar spreadsheet interface for an easy move from Excel
microsoft office alternative - wps office

Frequently Asked Questions

Why does the line break not appear after I use Replace All in Excel?

The line break may be present but hidden. Select the affected cells and choose Home > Wrap Text, then adjust the row height if needed.

Can I replace only $$ markers in selected Excel cells?

Yes. Select the target range before pressing Ctrl+H, then use Find and Replace. Excel applies the replacement to the selected cells when the selection is active.

What does Ctrl+J do in Excel Find and Replace?

When the cursor is in the Replace with box, Ctrl+J inserts a line-break character. Replacing a marker with that character creates a new line within the same cell.

Is an in-cell line break the same as creating a new Excel row?

No. An in-cell line break keeps all content in one cell and displays it on multiple lines. It does not insert a worksheet row or move data into another cell.

How can I add a line break in Excel for Mac if Ctrl+J does not work?

Create a helper cell containing a line break, copy the line-break character from that cell, and paste it into the Replace with field in the Replace dialog.