How to split text into different rows in Excel

In Excel, you can use the Text to Columns functionality to split the content of a cell into multiple cells.

You can specify the delimiter (such as a space, comma, or tab) and the Text to Columns would use this delimiter to split the content of the cells.

Examples of this include splitting first and last names, or username and domain name in email ids.

However, if you have a dataset where the delimiter is a line break (in the same cell), it gets tricky to split these multiple lines in the same cell into separate cells/columns.

For example, you can have a dataset as shown below, where you need to split multiple lines in the address (separated by line breaks) into separate cells.

How to split text into different rows in Excel

This would allow you to have the Name, Street, City, and Country in separate cells.

So the result would look something as shown below:

How to split text into different rows in Excel

Now to separate each part of the address, we can use the Text to Columns functionality (with a twist).

Note: If you’re wondering how I managed to insert each address element into a new line in the same cell, you can do that by using the keyboard shortcut – ALT + Enter (it enters a line break). You can read more about it here.

Using Text to Column to Split Multiple Lines in a Cell

Below are the steps that will split multiple lines in a single cell into separate cells:

The above steps would automatically split the content of the cells based on where the line break occurs in each cell.

Note that if you don’t want to keep the original data (it’s always advisable to do so though), you don’t need to specify the destination cell. It will simply overwrite the existing data and give you the result.

Also, in case you already have data in the cells where you are about to get the result of Text to Columns, Excel will show you a prompt letting you know that you will be overwriting the existing data. You can choose to overwrite or cancel

How to split text into different rows in Excel

How does this work?

When you use the keyboard shortcut Control J, it specifies the line break as the delimiter in the Text to Columns wizard.

Now, Text to Columns checks each cell for line breaks and use it to split the content into separate cells.

Note that Text to Columns would always split the content of the cells in separate columns. If you want to get the result in cells in different rows, you can transpose the result (as shown here).

You May Also Like the Following Excel Tutorials:

  • How to Split Cells in Excel.
  • How to Remove Line Breaks in Excel
  • How to Number Rows in Excel
  • How to Quickly Combine Cells in Excel.
  • CONCATENATE Excel Range (with and without separator).

How do I separate text in one row into multiple rows?

You can split the cell text first into multiple columns using Text to Column. Then, select these cells and copy them. Select a blank cell and right click to select 'Transpose'. The data will then be converted into multiple rows.

How do I convert text to rows in Excel?

Static method using Paste special.
Select the data, then copy it by pressing Control + C on your keyboard. Next, right-click your mouse on the cell you wish to paste this data into. ... .
The next screen appears once you choose Paste Special. Decide on the Values and Transpose option..
Then press OK..