Function Problems

How to Split Multiline Cell Text Using TEXTSPLIT in Excel

Tauseeq MagsiTauseeq Magsi Nov 10, 2026 869 views

Question details

The user needs to separate text that contains multiple lines within a single cell into individual cells, as the standard Text to Columns wizard fails to recognize the line breaks properly.

How to Split Multiline Cell Text Using TEXTSPLIT in Excel
Product
Excel
Device & OS
not provided
Scenario
Reformatting and extracting data from a single cell containing text separated by line breaks (Alt+Enter) into multiple distinct columns or rows.
Observed behavior
The standard Text to Columns tool does not correctly recognize line breaks after the first line, preventing the text from being split accurately into multiple cells.
Before you start

Ensure your version of Excel or Spreadsheet software supports dynamic array functions like TEXTSPLIT (available in Microsoft 365 and newer versions of WPS Office). Identify whether your text was separated by standard line breaks or carriage returns.

Solution 1Recommended

Split Multiline Text Horizontally (Into Columns)

Use the TEXTSPLIT function with a column delimiter to distribute the multiline text across adjacent columns.

In Excel, a standard line break created by pressing Alt+Enter is represented by the character code 10. You can use CHAR(10) as the column delimiter in the TEXTSPLIT function to tell Excel to start a new column wherever it encounters a line break.

1
Select the destination cell

Click on a blank cell adjacent to the cell containing your multiline text (for example, cell B1 if your data is in A1).

2
Enter the TEXTSPLIT formula

Type the formula =TEXTSPLIT(A1, CHAR(10)) into the formula bar.

3
Execute the formula

Press Enter. The multiline text will automatically spill horizontally into adjacent columns based on the line breaks.

Split Multiline Text Horizontally (Into Columns)
Dynamic Spill Array: Ensure you have enough empty columns to the right of your formula. If there is existing data in the way, Excel will return a #SPILL! error.

Effortlessly Manage Array Formulas with WPS Spreadsheet

WPS Spreadsheet fully supports dynamic array functions like TEXTSPLIT, enabling you to manage and format complex multiline text smoothly. It provides a familiar interface and comprehensive functionality to handle all your data processing needs.

  1. 1. Open your file in WPS Spreadsheet: Launch WPS Office and open the spreadsheet containing your multiline data.
  2. 2. Input the TEXTSPLIT formula: Select an empty cell and enter the formula =TEXTSPLIT(A1, CHAR(10)).
  3. 3. Press Enter to split the text: Hit Enter, and the WPS Spreadsheet engine will automatically spill your multiline text into beautifully separated cells.
Seamless compatibility with Microsoft Excel formulas and formats (XLSX).Full support for advanced dynamic array functions including TEXTSPLIT and TEXTJOIN.Built-in advanced data processing tools to handle formatting, cleaning, and text splitting.Lightweight, fast, and free to use for your everyday spreadsheet tasks.
QA img-9

Frequently Asked Questions

Why does the TEXTSPLIT function result in a #NAME? error?

The #NAME? error usually means your current version of the spreadsheet software does not support the TEXTSPLIT function. This function is available in newer versions like Microsoft 365 or the latest WPS Office. If you see this error, you may need to update your software.

Can I split multiline text without using formulas?

Yes. You can use the 'Text to Columns' feature located under the Data tab. In the wizard, choose 'Delimited', check the 'Other' box, and press Ctrl+J to insert a line break as the delimiter. However, TEXTSPLIT is highly recommended as it updates dynamically if the source data changes.

How do I combine split cells back into a single cell with multiple lines?

You can use the TEXTJOIN function to reverse the process. Use the formula =TEXTJOIN(CHAR(10), TRUE, B1:D1) to combine the cells back together. Ensure you apply the 'Wrap Text' format to the result cell so the line breaks display properly.