Line Breaks in Excel: Enter, Find and Remove Them Easily

line, break, excel, cell

Dealing with text in Excel can be painful as the formatting is limited within Excel cells. One method of organizing text is to add line breaks. In this article, we’ll explore ways of dealing with line breaks in Excel.

Insert line breaks manually with Alt + Enter

line breaks, line, breaks, cell, excel, string, formula, How to Insert a Line Break Inside a Cell

Inserting a line break in Excel is quite easy: Just press Alt computer_key_Alt+ Enter computer_key_Enterto add a line break inside a cell. This keyboard shortcut works the same way on Windows and the Office 2016 for Mac.

Insert line breaks with a formula

Let’s say you want to add a line break within the CONCATENATE formula or the ‘&’ when you combine two text cells. This works with the code CHAR(10).

Example: A1 has a text and B1 as well. You want to combine them but add two breaks between them. The formula would be:


Hold on a second. Was this information helpful so far?
Connect with me on LinkedIn...
Professor Excel at LinkedIn

Boost your Excel skills: Learn the best Excel tricks and tutorials!

How to search for line breaks in Excel

search, function, line, breaks, line breaks, excel
Search for line breaks in Excel by typing Ctrl + j into the search field.

You can use the search function in Excel to search for line breaks. Follow these steps:

  1. Open the search window by pressing Ctrl computer_key_Ctrl+ f computer_key_Fon the keyboard.
  2. Type Ctrl computer_key_Ctrl+ j computer_key_Jinto the search field and press Enter computer_key_Enter.

That’s it.

Replace or remove line breaks with the search function

remove, replace, line, breaks, excel
Remove line breaks in Excel.

Very similar to search for line breaks you can also remove or replace them. Instead of “Find”, use the “Replace” tab of the search window and replace them with a blank space (” “).

  1. Open the search window by pressing Ctrl computer_key_Ctrl+ f computer_key_Fon the keyboard.
  2. Type Ctrl computer_key_Ctrl+ j computer_key_Jinto the search field and press Enter computer_key_Enter.
  3. As the “Replace with” value enter a space character computer_key_Space_bar.
  4. Click on “Replace All” or just “Replace” if you want to go cell by cell.

In some cases, there a space characters at the end of a line. When that happens, you will get a double space. You might want to use the replace function again, but this time replace all double spaces (type 2x space on the keyboard) by just one space.

Replace or remove line breaks with the SUBSTITUTE formula

formula, substitute, line, breaks, excel
Remove line breaks in Excel with the SUBSTITUE formula.

Of course, replacing or removing line breaks is also possible using formulas. The easiest way is to use the SUBSTITUTE formula. If your input text is located in cell B3, the formula looks like this:

  1. The first part contains the input text. In our case it’s cell B3.
  2. The second part has the text which you want to replace. In our case it’s the line break, given by CHAR(10).
  3. In the third part you provide the replacement. Usually it’s a space character.

As sometimes the lines already end with a space, you might get double spaces. We recommend replacing double spaces by single space characters. Therefore, just use the SUBSTITUTE formula again and wrap it around the existing SUBSTITUTE formula:


Professor Excel is a fictional person with one passion: Microsoft Excel. He is devoted to pass on his vast experience and help all future generations to excel in Excel!


  1. Hi,

    I’m getting inconsistent results with this. I have multiple spreadsheets with line breaks. I’ve also created a few with line breaks myself, for testing.

    But the Ctrl+H function only finds some of them. It completely misses others. What might cause this? Could it be that something looks like a line break but is really something else?

    Thanks and regards,

    Aidan Sweeney

    1. Hi Aidan,

      sometimes people use a lot of space characters in order to achieve line breaks.
      If that’s not the case, can you try to copy the “line breaks” and search/ replace them?

      Best regards,

  2. Hallo.

    Nice article. Do you by chance, know how to insert a linebreak, where the cursor is positioned, just by using ENTER (and not ALT+ENTER).
    I know you have to use some vba-code, but I don’t succeed (Application.onkey and sendkey methods). Should you use the DLLs maybee?

    Regards Kåre

  3. Is it possible to use the conditional formatting when using a line break in its formula? I have a cell where the drop-down value is based on a text with a line break in it. How can I use the conditional formatting to recognize it? Thanks.

  4. Ctrl-J does not work on Excel for Mac. Does anyone knows what’s the equivalent? Cmd-J is not the equivalent. It does nothing.

Leave a comment

Your email address will not be published. Required fields are marked *