How to Split Multiple Line-Break Values into Separate Excel Cells
Question details
The user needs to transform Excel cells containing multiple line-break separated values into separate rows or cells while keeping the results organized.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Cleaning and organizing data where multiple items have been entered into a single cell using manual line breaks (Alt+Enter).
- Observed behavior
- Multiple values are stuck in a single cell, making data analysis, filtering, and sorting difficult. The goal is to dynamically separate them into individual rows.
Ensure your source data is formatted as an Excel Table (press Ctrl+T) before loading it into Power Query. This ensures that any future additions to your data will be captured automatically during refreshes.
Use Power Query to Split by Delimiter into Rows
Power Query is the most robust and repeatable method for splitting line-break values into separate rows automatically.
Using Power Query allows you to automate complex data-cleaning tasks without writing VBA code. Once this query is set up, you can simply click a button to refresh the data whenever new line-break entries are added to your source table.
Select any cell inside your data table, navigate to the 'Data' tab on the Excel ribbon, and click 'From Table/Range' to open the Power Query Editor.
Click on the header of the column containing the line-break values to select it. On the 'Home' tab, click 'Split Column' and choose 'By Delimiter' from the drop-down menu.
In the Split Column dialog box, select 'Custom' from the delimiter drop-down. Check the box for 'Split using special characters' and insert the 'Line Feed' character [#(lf)] into the custom field.
Expand the 'Advanced options' section in the same dialog box. Under the 'Split into' setting, select the 'Rows' radio button, then click 'OK'.
Click the 'Close & Load' button in the top left corner of the Home tab. This will output your newly separated data into a brand new worksheet.

Split and Clean Complex Data Easily in WPS Spreadsheet
WPS Spreadsheet offers powerful, intuitive data handling tools designed to simplify your workflow. Whether you need to split text, manage complex formats, or analyze large datasets, WPS provides a robust environment to get the job done quickly.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your combined cell data.
- 2. Select the target data: Highlight the specific column or cells that contain the values you wish to separate.
- 3. Access data tools: Navigate to the 'Data' tab on the top ribbon menu and click on the 'Text to Columns' icon.
- 4. Run the wizard: Follow the on-screen wizard instructions to select your specific delimiter and format the output cells efficiently.

Frequently Asked Questions
What is the keyboard shortcut to insert a line break in an Excel cell?
You can insert a manual line break within a single cell by pressing Alt + Enter while typing or editing the content directly in the cell or formula bar.
Can I split line breaks into separate columns instead of rows using Power Query?
Yes. When configuring the 'Split Column by Delimiter' settings in the Power Query Editor, expand the 'Advanced options' and choose 'Columns' instead of 'Rows'. This will spread the separated values horizontally.
Why isn't the standard 'Text to Columns' tool working for my line-break data?
The standard 'Text to Columns' tool splits data into adjacent columns, not vertical rows. Additionally, specifying a line-break (using Ctrl+J) as a custom delimiter in the standard wizard can be finicky, making Power Query the superior choice for this specific task.
Will using Power Query modify or delete my original source data?
No. Power Query is non-destructive. It extracts a copy of the data, performs the transformations in a separate editor, and loads the cleaned result into a new table, leaving your original data completely untouched.




