Data Import & Export

Convert Line-Break Separated Text to Rows in Excel

Huma Ashraf ChHuma Ashraf Ch Nov 13, 2026 871 views

Question details

The user needs to split multiple lines stored in one Excel cell into separate rows.

Convert Line-Break Separated Text to Rows in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Text containing line breaks has been pasted into one cell, and each line should occupy its own row.
Observed behavior
The pasted lines remain in a single cell, and Excel's Text to Columns command splits data horizontally rather than directly into rows.
Before you start

Identify the cell containing the line breaks and make sure there is enough empty space for the results. For the formula method, check that your Excel version supports TEXTSPLIT, such as Microsoft 365 or Excel 2024.

Solution 1Recommended

Split line breaks into rows with TEXTSPLIT

Use this formula in a supported Excel version to create a vertical list that updates when the source cell changes.

1
Select an empty cell

Click an empty cell where you want the first result to appear, with enough blank cells below it.

2
Enter the formula

Type =TEXTSPLIT(A1,,CHAR(10)) in the formula bar and press Enter. Replace A1 with the cell containing your text.

3
Check the results

Review the spilled list below the formula cell. If Excel shows #SPILL!, clear any cells blocking the output range.

Split line breaks into rows with TEXTSPLIT
Source updates: The formula recalculates when the source cell changes if automatic calculation is enabled. Use TRIM on the results if unwanted extra spaces need to be removed.
WPS Spreadsheet

Turn Line-Break Text into Rows in WPS Spreadsheet

Use a substitute delimiter, Text to Columns, and Transpose in WPS Spreadsheet to turn the lines in one cell into a vertical list.

  1. 1. Replace line breaks: Open the workbook in WPS Spreadsheet. In an empty cell, enter =SUBSTITUTE(A1,CHAR(10),"|") and replace A1 with your source cell. Choose a delimiter that does not appear in the text.
  2. 2. Paste the result as a value: Copy the formula cell and use Paste Special > Values to paste the result into an empty cell.
  3. 3. Split the text horizontally: Select the pasted cell, choose Data > Text to Columns, and use | as the other delimiter. Finish the wizard with enough empty cells to the right.
  4. 4. Transpose the split cells: Copy the resulting row, select an empty destination cell, and choose Paste Special > Transpose to place each item in a separate row.
Split multiline cell contents into separate rowsOpen and edit Microsoft Excel XLSX and XLS filesUse familiar spreadsheet formulas and data tools
microsoft office alternative - wps office

Frequently Asked Questions

Why does TEXTSPLIT return a #SPILL! error?

The output range may contain existing data. Clear the cells below the formula or move the formula to an empty area.

Will the split rows update when I edit the original cell?

The TEXTSPLIT formula updates when the source changes if Excel calculation is automatic. Rows created with Text to Columns and Transpose are static and must be recreated.

What if my Excel version does not have TEXTSPLIT?

Use SUBSTITUTE to replace line breaks with a delimiter, then choose Data > Text to Columns and paste the resulting row using Transpose.

Can I use a different delimiter instead of a vertical bar?

Yes. Choose a character that does not occur in your source text, use it in the SUBSTITUTE formula, and enter the same character as the Other delimiter in Text to Columns.