How to Split Line-Break Data from One Excel Cell into Columns
Question details
The user needs to distribute multiple values that are stacked inside a single cell and separated by line breaks into adjacent columns.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Formatting and structuring multiline cell data imported from external sources or manually entered for better data analysis and sorting.
- Observed behavior
- Data values are currently grouped inside one cell using line breaks, instead of being cleanly separated into their own distinct columns.
Ensure you have inserted enough blank columns to the right of your source data to accommodate the separated values, which prevents accidental overwriting of your existing data.
Use the Text to Columns Wizard with Ctrl+J
This is the fastest, built-in method to split multiline cell contents into separate columns without relying on complex formulas or coding.
The standard Text to Columns tool usually relies on commas, spaces, or tabs. However, it can also process hidden line-break characters by utilizing a specific keyboard shortcut during the wizard setup.
Highlight the specific cells or the entire column containing the line-break data you want to split.
Navigate to the Data tab on your ribbon and click on the Text to Columns button.
In the wizard that appears, select 'Delimited' as the original data type and click Next.
Under the Delimiters section, check the box next to 'Other'. Click inside the blank box next to it and press 'Ctrl+J' on your keyboard.
Click Next to verify the destination cell, then click Finish to separate the values into multiple columns.

Automate the Process with a VBA Macro
If you frequently need to split multiline cells, utilizing a VBA macro is a highly efficient way to automate the Text to Columns process.
Easily Split Cell Data with WPS Spreadsheets
WPS Spreadsheets provides robust and familiar data management tools. You can quickly perform advanced operations, including splitting multiline text to columns, using its highly intuitive and free interface.
- 1. Open your file in WPS: Launch WPS Spreadsheets and open the workbook containing your multiline data.
- 2. Highlight the data: Select the cells containing the line-break values you wish to separate.
- 3. Use Text to Columns: Go to the Data tab, click Text to Columns, select 'Delimited', check 'Other', and press 'Ctrl+J'.
- 4. Apply changes: Click Finish to cleanly distribute your data into adjacent columns.

Frequently Asked Questions
Why did Text to Columns overwrite my existing adjacent data?
The Text to Columns feature pushes the split data into the columns immediately to the right of your selection. If those adjacent columns already contain data, it will be permanently overwritten. Always insert sufficient empty columns before starting the process.
Can I split line-break data into separate rows instead of columns?
Yes, but not with standard Text to Columns. You must use Power Query. Select your data, go to Data > From Table/Range, and in the Power Query Editor, choose 'Split Column by Delimiter'. Under Advanced options, choose 'Rows' and use the line feed delimiter.
How do I manually type a line break inside an Excel cell?
To force a manual line break within a single cell while typing in Excel or WPS Spreadsheets, press 'Alt+Enter' on your keyboard.
What does Chr(10) represent in the provided VBA macro?
In VBA programming, 'Chr(10)' is the ASCII character code for a Line Feed. The macro uses it to specifically identify line breaks as the delimiter criteria when parsing and separating the cell contents.




