18
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://res.cloudinary.com/practicaldev/image/fetch/s--zbNEamL_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://geekexcel.com/wp-content/uploads/2021/06/Remove-the-line-break-from-the-text-string.png)
- If you want to remove the line break between two text string, you can use the below formula.
=SUBSTITUTE(A1,CHAR(10),”, “)
- 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.
- CHAR – In Excel, the CHAR function 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.
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.
![](https://res.cloudinary.com/practicaldev/image/fetch/s--6vGlbs3C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://geekexcel.com/wp-content/uploads/2021/06/Input-Range-12.png)
- Select any cell and type the above-given formula.
![](https://res.cloudinary.com/practicaldev/image/fetch/s--2K-wVo-9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://geekexcel.com/wp-content/uploads/2021/06/Enter-the-formula-46.png)
- Finally, press the ** ENTER** key, you can get the result as shown below.
![](https://res.cloudinary.com/practicaldev/image/fetch/s--MNuISIe2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://geekexcel.com/wp-content/uploads/2021/06/Result-39.png)
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!! **If you want to learn more helpful formulas, check out Excel Formulas *!! **
18