Excel Formulas

Remove Line Breaks Formula in Excel: Copy-Paste Examples

Copy, paste, and adapt Remove line breaks formula with practical spreadsheet examples.

💡 Ideas for You

Helpful resources matched to this page.

4 focused options
📚 Step-by-step booksIndependent learning resources and step-by-step books from Create & Learn.📘 Topic guideAmazon ideas related to Remove line breaks.🧮 Formula booksBooks and references for spreadsheet formulas and examples.⌨️ Productivity setupHelpful books, office tools, and productivity resources.

Quick answer

Replace line breaks with spaces.

=SUBSTITUTE(A2,CHAR(10)," ")

Example data layout

Use a small table first, confirm the result, then copy the formula down the column.

InputHelper valueResult
A2B2Formula result
A3B3Copied formula result

Copy-paste examples

Beginner

Basic Remove line breaks example

=SUBSTITUTE(A2,CHAR(10)," ")

Adjust the cell references to match your worksheet layout.

Beginner

Remove line breaks copied down rows

=SUBSTITUTE(A3,CHAR(10)," ")

Adjust the cell references to match your worksheet layout.

Intermediate

Remove line breaks with clean fallback

=IFERROR(SUBSTITUTE(A2,CHAR(10)," "),"")

Adjust the cell references to match your worksheet layout.

Intermediate

Remove line breaks with structured references

=SUBSTITUTE([@Input],CHAR(10)," ")

Adjust the cell references to match your worksheet layout.

Advanced

Remove line breaks with dynamic data

=SUBSTITUTE(A2,CHAR(10)," ")

Adjust the cell references to match your worksheet layout.

Advanced

Remove line breaks inside a report formula

=LET(result,SUBSTITUTE(A2,CHAR(10)," "),result)

Adjust the cell references to match your worksheet layout.

Step-by-step tips

  1. Paste the formula into the first result cell.
  2. Replace sample references like A2, B2, or Table1 with your real cells or table columns.
  3. Test the formula on two or three rows before copying it down.
  4. Format the result column as Number, Date, Currency, or Percentage when needed.
  5. Keep a backup copy of your original data before applying formulas across a large range.

Common mistakes

  • Using text values where Excel expects numbers or dates.
  • Forgetting quotation marks around text criteria.
  • Copying a formula without locking fixed references using dollar signs.
  • Applying the wrong number format and thinking the formula is wrong.

Related formula examples