Convert Line-Break Separated Text to Rows in Excel
Question details
The user needs to split multiple lines stored in one Excel cell into separate rows.

- 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.
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.
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.
Click an empty cell where you want the first result to appear, with enough blank cells below it.
Type =TEXTSPLIT(A1,,CHAR(10)) in the formula bar and press Enter. Replace A1 with the cell containing your text.
Review the spilled list below the formula cell. If Excel shows #SPILL!, clear any cells blocking the output range.

Use Text to Columns and Transpose in Excel
Use this manual method if TEXTSPLIT is unavailable or you need a static list.
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. 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. Paste the result as a value: Copy the formula cell and use Paste Special > Values to paste the result into an empty cell.
- 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. 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.

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.




