Split Multiple Lines From a Cell into Separate Rows in Excel!!
Tags: excelpreface, excelbasics, exceltutorials, splitmultiplelinesin
Published: 2021-01-22 03:50:51

---
title: Split Multiple Lines From a Cell into Separate Rows in Excel!!
published: true
date: 2021-01-21 12:06:39 UTC
tags: ExcelPreface,ExcelBasics,ExcelTutorials,Splitmultiplelinesin
canonical_url: https://geekexcel.com/split-multiple-lines-from-a-cell-into-separate-rows-in-excel/
---

Assume that you have a list of data that contains multiple lines, and you need to separate them into a single line. How can you solve this job? In this tutorial, we are going to see how to **split the multiple lines from a cell** and return them into separated rows or columns in Excel. Let’s see them below!! Get an official version of ** MS Excel**  from the following link: [https://www.microsoft.com/en-in/microsoft-365/excel](https://www.microsoft.com/en-in/microsoft-365/excel)

## Steps to Split the multiple lines:

You can use the below formula to extract the multiple lines.

**=[TRIM](https://geekexcel.com/use-trim-function-in-microsoft-excel-2013-simple-methods/)( [MID](https://geekexcel.com/how-to-use-mid-function-in-microsoft-excel-365/)([SUBSTITUTE](https://geekexcel.com/how-to-use-substitute-function-in-microsoft-excel-2013/)( $B2, [CHAR](https://geekexcel.com/how-to-use-char-function-in-microsoft-excel-365/)(10), [REPT](https://geekexcel.com/how-to-use-rept-function-in-microsoft-excel-2013/)( ” “,[LEN](https://geekexcel.com/how-to-use-len-function-in-microsoft-excel-365/)($B2) ) ), (C$1-1)\*LEN($B2)+1, LEN($B2)))**

### Argument Explanations:

- **TRIM** – This function will help to remove the extra spaces from the text and there is no space at the start or end of the text string. Read more on the **[TRIM function](https://geekexcel.com/use-trim-function-in-microsoft-excel-2013-simple-methods/)**.
- **MID** – In Excel, the **[MID function](https://geekexcel.com/how-to-use-mid-function-in-microsoft-excel-365/)** helps to extract the number (starting from the left side) or characters from the given string
- **SUBSTITUTE** – It will replace existing text with new text in a text string when you want to replace text based on its content, not position. Read more on the **[SUBSTITUTE Function](https://geekexcel.com/how-to-use-substitute-function-in-microsoft-excel-2013/)**.
- **CHAR** – This function helps to get a character by a specified number. Read more on the **[CHAR function](https://geekexcel.com/how-to-use-char-function-in-microsoft-excel-365/)**.
- **REPT** – The Excel [**REPT function**](https://geekexcel.com/how-to-use-rept-function-in-microsoft-excel-2013/) repeats characters a given number of times.
- **LEN** – In Excel, the **[LEN function](https://geekexcel.com/how-to-use-len-function-in-microsoft-excel-365/)** returns the  **length of a given text string** as the number of characters.

### Practical Example:

- First, you need to enter the text string in multiple lines by clicking the  
**ALT** + **ENTER** keys. It will display the input data line by line as shown below.

![Input data](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/01/Input-Range-13.png)<figcaption id="caption-attachment-21346">Input data</figcaption>

- Then apply the above-given formula to the **[formula bar](https://geekexcel.com/how-to-use-formula-bar-for-various-purpose-in-excel-365/)** section.

![Enter the formula](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/01/Enter-the-formula-21.png)<figcaption id="caption-attachment-21347">Enter the formula</figcaption>

- After that press the Enter key, it will split the text and return it into separate rows.

![Result](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2021/01/Result-41.png)<figcaption id="caption-attachment-21348">Result</figcaption>

## Bottom-Line:

From this short tutorial, you can understand how to **split the multiple lines from a cell** and return the values into separate rows in Excel. Hope you like it. Please state your **query** in the below **comment** section. Thank you so much for visiting **[Geek Excel](https://geekexcel.com/)!!**

### Read More:

- **[How to Split the Text String By a Specified Character in Excel Office 365?](https://geekexcel.com/split-text-string-by-specified-character-excel/)**
- **[Split Text String by Line Break in Excel Office 365!!](https://geekexcel.com/split-text-string-by-line-break-in-excel-office-365/)**
- **[Split First, Middle, Last Names of the Full Name in Excel Office 365!!](https://geekexcel.com/split-first-middle-last-names-of-the-full-name-in-excel-office-365/)**