Excel Formulas to Remove the Line Breaks Between Two Text Strings!!
Tags: excelformula, excelformulas
Published: 2021-06-21 10:13:14

---
title: Excel Formulas to Remove the Line Breaks Between Two Text Strings!!
published: true
date: 2021-06-15 12:02:37 UTC
tags: ExcelFormula,Excelformulas
canonical_url: https://geekexcel.com/excel-formulas-to-remove-the-line-breaks-between-two-text-strings/
---

Assume that you have a list of values, and you need to **remove the line breaks between two text strings in Excel**? Do you have any good ideas to deal with the task? Today I will introduce some methods to achieve it. Let’s get into this article!! 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)

[![Remove the line break from the text string](https://geekexcel.com/wp-content/uploads/2021/06/Remove-the-line-break-from-the-text-string.png)](https://geekexcel.com/excel-formulas-to-remove-the-line-breaks-between-two-text-strings/remove-the-line-break-from-the-text-string/#main)<figcaption id="caption-attachment-46474">Remove the line break from the text string</figcaption>

## Generic Formula:

- If you want to remove the line break between two text string, you can use the below formula.

**=[SUBSTITUTE](https://geekexcel.com/how-to-use-substitute-function-in-microsoft-excel-2013/)(A1,[CHAR](https://geekexcel.com/how-to-use-char-function-in-microsoft-excel-365/)(10),”, “)**

## Syntax Explanations:

- **SUBSTITUTE** – This function can 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** – In Excel, the **[CHAR function](https://geekexcel.com/how-to-use-char-function-in-microsoft-excel-365/)** helps to get a character by a specified number.
- **A1** – It represents the input value.
- **Comma symbol (,)** – It is a separator that helps to separate a list of values.
- **Parenthesis ()** – The main purpose of this symbol is to group the elements.

## Practical Example:

Refer to the below example image.

- Here we will enter the input text strings in **Column B**.
- Now we are going to delete all the extra spaces from the starting and end of the text string.

![Input Range](https://geekexcel.com/wp-content/uploads/2021/06/Input-Range-12.png)<figcaption id="caption-attachment-46473">Input Range</figcaption>

- Select any cell and type the above-given formula.

![Enter the formula](https://geekexcel.com/wp-content/uploads/2021/06/Enter-the-formula-46.png)<figcaption id="caption-attachment-46472">Enter the formula</figcaption>

- Finally, press the ** ENTER**  key, you can get the result as shown below.

![Result](https://geekexcel.com/wp-content/uploads/2021/06/Result-39.png)<figcaption id="caption-attachment-46471">Result</figcaption>

## Closure:

Hope you like this article on how to **remove the line breaks from the text string in Excel**. Hope you like this article. If you have any **questions** , feel free to **comment**.

Thank you so much for visiting  **[Geek Excel](https://geekexcel.com/)!! **If you want to learn more helpful formulas, check out [**Excel Formulas**](https://geekexcel.com/excel-formula/) **!! **

### Read Also:

- **[Excel Formulas to Remove the Last Word ~ Easy Tutorial!!](https://geekexcel.com/excel-formulas-to-remove-the-last-word-easy-tutorial/)**
- **[Formulas for Counting Rows that Matches Two or More Criteria in Excel!!](https://geekexcel.com/formulas-for-counting-rows-that-matches-two-or-more-criteria-in-excel/)**
- **[Excel Formulas to Remove the First Character ~ A Complete Tutorial!!](https://geekexcel.com/excel-formulas-to-remove-the-first-character/)**
- **[Excel Formulas to Remove File Extension from Filename ~ Simple Tricks!!](https://geekexcel.com/excel-formulas-to-remove-file-extension-from-filename/)**