Remove Line Breaks from Excel Cells in Bulk
Question details
The user needs to remove line breaks from more than 500 Excel cells before splitting the text into columns.

- 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.
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.
Replace line breaks in the selected Excel cells
Use Find and Replace to remove line breaks from the affected range in one operation.
In Excel, select the cells or range containing the line breaks.
On Windows, press Ctrl+H, or open Home > Find & Select > Replace.
Click the Find what box and press Ctrl+J. The line-break character may not be visible in the box.
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.
Keep the cleaned cells selected, choose Data > Text to Columns, and follow the wizard. If you inserted commas, choose Delimited and select Comma.

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. Open and select the data: Open the workbook in WPS Spreadsheet and select the cells containing line breaks.
- 2. Find the line breaks: Press Ctrl+H to open Find and Replace, click Find what, and press Ctrl+J.
- 3. Replace the line breaks: Enter a space or comma in Replace with, then click Replace All.
- 4. Split the text: Select the cleaned cells and choose Data > Text to Columns. Choose the delimiter that matches the replacement you used.

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.




