Formatting Issues

Remove Line Breaks from Excel Cells in Bulk

Elise WilliamsElise Williams Nov 14, 2026 869 views

Question details

The user needs to remove line breaks from more than 500 Excel cells before splitting the text into columns.

Remove Line Breaks from Excel Cells in Bulk
Product
Microsoft Excel
Device & OS
not provided
Scenario
Preparing a large range of cells for Excel's Text to Columns feature.
Observed behavior
The cells contain wrapped text with line breaks that need to be removed or replaced before the data is split.
Before you start

Check whether the cells contain actual line breaks or only appear wrapped because Wrap Text is enabled. Decide whether to replace each line break with a space or with a delimiter, such as a comma, for Text to Columns.

Solution 1Recommended

Replace line breaks in the selected Excel cells

Use Find and Replace to remove line breaks from the affected range in one operation.

1
Select the cells

In Excel, select the cells or range containing the line breaks.

2
Open Find and Replace

On Windows, press Ctrl+H, or open Home > Find & Select > Replace.

3
Enter the line break

Click the Find what box and press Ctrl+J. The line-break character may not be visible in the box.

4
Replace all matches

In Replace with, enter a space to join the text or a comma to use as a delimiter. Click Replace All and review the result.

5
Split the cleaned text

Keep the cleaned cells selected, choose Data > Text to Columns, and follow the wizard. If you inserted commas, choose Delimited and select Comma.

Replace line breaks in the selected Excel cells
Wrapping is not always a line break: If text only wraps because of the cell width, Find and Replace will not remove a line break. Use Home > Wrap Text to change its display instead.
Work with spreadsheets in WPS Office

Remove cell line breaks with WPS Spreadsheet

Use Find and Replace in WPS Spreadsheet to replace line breaks across a selected range, then split the cleaned text into columns.

  1. 1. Open and select the data: Open the workbook in WPS Spreadsheet and select the cells containing line breaks.
  2. 2. Find the line breaks: Press Ctrl+H to open Find and Replace, click Find what, and press Ctrl+J.
  3. 3. Replace the line breaks: Enter a space or comma in Replace with, then click Replace All.
  4. 4. Split the text: Select the cleaned cells and choose Data > Text to Columns. Choose the delimiter that matches the replacement you used.
Replace line breaks across multiple selected cells at onceSplit cleaned text using Text to ColumnsOpen and edit Microsoft Excel XLS and XLSX filesWork in a familiar spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does the Find what box look empty after I press Ctrl+J?

Ctrl+J inserts a line-break character, which may not appear visibly in the box. Enter a replacement in Replace with and click Replace All.

Should I replace line breaks with spaces or commas?

Use a space to join the text into a readable phrase. Use a comma if you want to split the text at those positions with Data > Text to Columns and the Comma delimiter.

How can I remove line breaks from only some cells?

Select the affected range before opening Home > Find & Select > Replace, then use Ctrl+J in Find what and click Replace All.

Why does my text still appear on multiple lines after replacement?

The text may be wrapping because Wrap Text is enabled or the column is narrow. Select the cells and check Home > Wrap Text, or widen the column.