30 Advanced Excel Tips for 2026

Excel Champs / Excel Formulas List / How to Remove Line Break from a Cell in Excel (Formula)
By Puneet Gogia (Microsoft MVP)

How to Remove Line Break from a Cell in Excel (Formula)

30+ Advanced Excel Tips for 2026

No spam. Only Excel Stuff. God Promise. 😊

To remove a line break, replace the line-feed character with nothing or with a space: =SUBSTITUTE(A2,CHAR(10),"") joins the lines together, and =SUBSTITUTE(A2,CHAR(10)," ") puts a space where each break was — usually the one you want, or words run together.

CHAR(10) is the break character on Windows; text pasted from a Mac, a web page or a database may use CHAR(13) instead, so wrap both when the first formula appears to do nothing: =TRIM(SUBSTITUTE(SUBSTITUTE(A2,CHAR(10)," "),CHAR(13)," ")). =TRIM(CLEAN(A2)) is the catch-all — CLEAN strips every non-printing character, including both break types.

To remove breaks in place rather than in a new column, press Ctrl+H, click into “Find what” and press Ctrl+J (nothing visible appears, which is normal), leave “Replace with” empty or type a space, then Replace All. Note that turning off Wrap Text only hides a line break — the character stays in the cell.

To create a formula to remove line breaks from a cell, you need to combine two functions: SUBSTITUTE and CHAR. SUBSTITUTE helps you to replace a specific value from a cell, and CHAR help to get specific characters using a code. With CHAR, we will get the line break character and replace it using SUBSTITUTE with a space or a blank value.

remove-link-break-from-cell

This tutorial will teach you to write a formula to remove a line break from a cell.

Formula to Remove Line Break from a Value

You can use the below steps:

  1. First, enter the SUBSTITUTE function in a cell.
  2. After that, in the first argument, refer to the cell where you have the value with the line break.
  3. Next, in the second argument, enter the CHAR function, and in the CHAR function, enter (10), close the function,
  4. Now in the third argument, enter a blank space or a space.
  5. In the end, enter the closing parentheses, and hit enter to get the result.
formula-to-remove-line-break
=SUBSTITUTE(A2,CHAR(10),"")
=SUBSTITUTE(A2,CHAR(10)," ")
[thrive_leads id=’112075′]

How this Formula Works

When you use the CHAR function and enter code 10, it returns the line break character in the result.

understand-the-formula

And you have used it in the SUBSTITUTE function’s old_text argument, which means this is the old text you want to replace. And in the new_text, you have a space or a blank value. That means you want to replace or remove a line break from the cell with a new value.

substitute-and-char-function

One More Way that You Can Use

When you apply the line break to a cell, you need to apply wrap text to that value, and if you want to remove the line break from the cell, you can remove the wrap text option.

apply-wrap-text

Get the Excel File

Puneet Gogia

Written by

Puneet Gogia

Microsoft MVP — Excel · Founder, Excel Champs

Twelve years of teaching Excel, and a decade before that using it as a data analyst. Every tutorial here is written from a file I actually built.

3M+ readers helped
1,000+ tutorials written
Since 2015 teaching Excel

2 thoughts on “How to Remove Line Break from a Cell in Excel (Formula)”

  1. This formula does not work. The line breaks remain after using it.

    Reply

Leave a Comment