Function Problems

How to Convert Comma-Separated Values to Line Breaks in WPS Excel Cells

Phi Hung VoPhi Hung Vo Nov 13, 2026 869 views

Question details

The user wants to replace comma-separated items with line breaks inside a WPS Excel cell so each item appears on its own line while remaining in the same cell.

Convert Comma-Separated Values to Line Breaks in WPS Excel Cells
Product
WPS Office Excel
Device & OS
not provided
Scenario
Editing spreadsheet cells that contain comma-separated lists and converting them into vertically stacked text within each cell.
Observed behavior
The cell currently shows comma-separated items on one line; after conversion, the text should display as separate lines in the same cell.
Before you start

Select the target range and confirm whether your comma-separated items include a space after each comma. This affects whether you enter a comma plus a space or only a comma in Find what.

Solution 1Recommended

Use Find and Replace to Turn Commas into Line Breaks in WPS Excel

Best for quickly converting all comma-separated entries in a selected range without using formulas.

1
Select the target cells

Open your worksheet in WPS Office Excel and select the range that contains the comma-separated values you want to convert.

2
Open Find and Replace

Press Ctrl+H to open the Find and Replace dialog box, and make sure the Replace tab is selected.

3
Enter the delimiter to find

In the Find what box, type a comma followed by a space if your items use that delimiter, such as a comma and a space.

4
Insert a line break in Replace with

Click in the Replace with box, then press Ctrl+J to insert a line-feed character. The box may look empty, but the line break is entered.

5
Replace and format

Click Replace All, then enable Wrap Text from the Home tab and autofit the row height to display each item on its own line.

Use Find and Replace to Turn Commas into Line Breaks in WPS Excel
Wrap Text is required: The line break is stored in the cell, but the cell still displays on one line until you enable Wrap Text and adjust the row height.
WPS Excel solution

Convert Commas to Line Breaks in WPS Excel Cells

Use WPS Office Excel's Find and Replace or SUBSTITUTE formula to replace commas with line breaks, then enable Wrap Text and autofit rows for a clean vertical list in each cell.

  1. 1. Open your workbook in WPS Office Excel: Launch WPS Office Excel and open the workbook containing the comma-separated cells.
  2. 2. Select the target range: Highlight the cells whose delimiters you want to convert into line breaks.
  3. 3. Replace commas with line breaks: Press Ctrl+H, enter a comma and space in Find what, click in Replace with, press Ctrl+J, and choose Replace All.
  4. 4. Enable Wrap Text and autofit: On the Home tab, click Wrap Text and then autofit the row height to display each item on a separate line.
Quickly converts commas to cell line breaks without retyping dataWorks on large selected ranges with one Replace All actionFully compatible with .xlsx and Microsoft Excel workbooksFree to download and use in WPS Office Excel
microsoft office alternative - wps office

Frequently Asked Questions

Why does the cell still show everything on one line after Replace All?

The line break is inserted, but Wrap Text must be enabled. Select the cells, click Home > Wrap Text, and autofit the row height.

Can I convert comma-separated values for an entire column at once?

Yes. Select the entire column or the specific range, then use Ctrl+H and Replace All. All matching commas in the selected area are replaced with line breaks.

What if my comma-separated values do not include a space after the comma?

In Find and Replace, enter only a comma in Find what, or use the formula =SUBSTITUTE(A1,",",CHAR(10)).

How do I type a line break in the Replace with box?

Click in the Replace with box and press Ctrl+J. The box may appear blank, but Excel inserts a line-feed character.

Can I undo the conversion if I make a mistake?

Press Ctrl+Z immediately after Replace All to undo the change, or work on a copy of the sheet for a safer rollback.