Data Import & Export

Split Excel Cells by Line Breaks with Text to Columns

Chanuka GeekiyanageChanuka Geekiyanage Dec 2, 2026 868 views

Question details

The user wants to split the lines within Excel cells into separate columns.

Split Excel Cells by Line Breaks with Text to Columns
Product
Microsoft Excel
Device & OS
not provided
Scenario
Using Text to Columns on cells that contain multiple line breaks.
Observed behavior
Only the first line appears after the conversion.
Before you start

Select a single column containing the cells to split, and make sure there are enough empty columns for the results. If needed, choose a blank destination in the Text to Columns wizard to avoid overwriting existing data.

Solution 1Recommended

Use Ctrl+J as the line-break delimiter in Excel

Use this method to place each line from a cell into a separate column.

1
Open Text to Columns

Select the cells in one column, then go to Data > Text to Columns.

2
Choose Delimited

In the wizard, select Delimited and click Next.

3
Enter the line-break delimiter

Select Other, click its delimiter box, and press Ctrl+J. Clear any other delimiter checkboxes unless you also want to split on those characters.

4
Preview and finish

Check that the Data preview shows each line in a separate column. Click Next, choose an empty Destination if needed, and click Finish.

Use Ctrl+J as the line-break delimiter in Excel
The delimiter may look invisible: The line-break character entered with Ctrl+J may not be visible in the Other box. Use the Data preview to check the split before clicking Finish.
Split lines in WPS Spreadsheets

Split cell lines into columns in WPS Spreadsheets

In WPS Spreadsheets, replace line breaks with a temporary delimiter in a helper column, then use Text to Columns to separate the lines.

  1. 1. Open the workbook: Open your Excel workbook in WPS Spreadsheets and identify the column containing the multiline cells.
  2. 2. Create a helper column: In an empty column, enter =SUBSTITUTE(A2,CHAR(10),"|") for the first cell, replacing A2 with the appropriate cell reference. Fill the formula down for the remaining rows.
  3. 3. Paste the results as values: Select and copy the helper-column results, then use Paste Special > Values to replace the formulas with text.
  4. 4. Split the helper column: Select the pasted cells and choose Data > Text to Columns. Select Delimited, enter | as the Other delimiter, check the preview, and finish the split into empty columns.
Split multiline cell contents into separate columnsOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interfaceWork with a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does the Other delimiter box look empty after I press Ctrl+J?

Ctrl+J enters a line-break character that may not be visible. Check the Data preview in the Text to Columns wizard to see whether the lines are separated.

Will Text to Columns overwrite nearby cells?

It can overwrite data in the destination columns. Leave enough columns empty or select a blank Destination in the final step of the wizard.

What should I do if the split produces the wrong result?

Use Undo, then reopen Data > Text to Columns. Select Delimited, enter Ctrl+J in the Other box, and check the preview before finishing.

What if my text already contains the pipe character used in the WPS helper formula?

Choose a different character that does not appear in the source text. Use the same character in the SUBSTITUTE formula and as the Other delimiter in Text to Columns.