Can you do a line break in excel

Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2019 for Mac Excel 2016 Excel 2016 for Mac Excel 2013 Excel 2010 Excel 2007 Excel for Mac 2011 More…Less

To add spacing between lines or paragraphs of text in a cell, use a keyboard shortcut to add a new line.

  1. Double-click the cell in which you want to insert a line break

  2. Click the location where you want to break the line.

  3. Press ALT+ENTER to insert the line break.

Top of Page

Need more help?

To start a new line of text or add spacing between lines or paragraphs of text in a worksheet cell, press Alt+Enter to insert a line break.

  1. Double-click the cell in which you want to insert a line break.

  2. Click the location inside the selected cell where you want to break the line.

  3. Press Alt+Enter to insert the line break.

To start a new line of text or add spacing between lines or paragraphs of text in a worksheet cell, press CONTROL + OPTION + RETURN to insert a line break.

  1. Double-click the cell in which you want to insert a line break.

  2. Click the location inside the selected cell where you want to break the line.

  3. Press CONTROL+OPTION+RETURN to insert the line break.

To start a new line of text or add spacing between lines or paragraphs of text in a worksheet cell, press Alt+Enter to insert a line break.

  1. Double-click the cell in which you want to insert a line break (or select the cell and then press F2).

  2. Click the location inside the selected cell where you want to break the line.

  3. Press Alt+Enter to insert the line break.

  1. Double-tap within the cell.

  2. Tap the place where you want a line break, and then tap the blue cursor.

    Insert line break

  3. Tap New Line in the contextual menu.

    New line

Note: You cannot start a new line of text in Excel for iPhone.

  1. Tap the keyboard toggle button to open the numeric keyboard.

    Keyboard switch

  2. Press and hold the return key to view the line break key, and then drag your finger to that key.

    Line break button

A line break in Excel can be used to end the current line and start a new line in the same cell (as shown below).

Insert Line Break in Excel Formula

Notice that in the pic above, Morning is in the second row in the same cell.

You may want to insert a line break in Excel when you have multiple parts of a text string that you want to show in separate lines. A good example of this could be when you have an address and you want to show each part of the address in a separate line (as shown below).

Line break in address

In this tutorial, I will show you a couple of ways to insert a line break in Excel (also called the in-cell carriage return in Excel)

Inserting a Line Break Using a Keyboard Shortcut

If you only need to add a couple of line breaks, you can do this manually by using a keyboard shortcut.

Here is how to insert a line break using a keyboard shortcut:

  • Double-click on the cell in which you want to insert the line break (or press F2). This will get you into the edit mode in the cell
  • Place the cursor where you want the line break.
  • Use the keyboard shortcut – ALT + ENTER (hold the ALT key and then press Enter).

The above steps would insert a line break right where you had placed the cursor. Now you can continue to write in the cell and whatever you type will be placed in the next line.

Note that you need the cell to be in the ‘Wrap text’ mode to see the content appear in the next line. In case it’s is not applied, you will see all the text in a single cell (even if you have the line break). ‘Wrap Text’ option is available in the Home tab in the ribbon.

The keyboard shortcut is a quick way to add a line break if you only have to do this for a few cells. But if you have to do this a lot of cells, you can use the other methods covered later in this tutorial.

Inserting Line Breaks Using Formulas

You can add a line break as a part of the formula result.

This can be useful when you have different cells that you want to combine and add a line break so that each part is in a different line.

Below is an example where I have used a formula to combined different parts of an address and have added a line break in each part.

Add Line break using a formula to combine address

Below is the formula that adds a line break within the formula result:

=A2&CHAR(10)&B2&(CHAR(10)&C2)

The above formula uses CHAR(10) to add the line break as a part of the result. CHAR(10) uses the ASCII code which returns a line feed. By placing the line feed where you want the line break, we are forcing the formula to break the line in the formula result.

You can also use the CONCAT formula instead of using the ampersand (&) symbol:

=CONCAT(A2,CHAR(10),B2,CHAR(10),C2)

or the old CONCATENATE formula in case you’re using older versions of Excel and don’t have CONCAT

=CONCATENATE(A2,CHAR(10),B2,CHAR(10),C2)

And in case you are using Excel 2016 or prior versions, you can use the below TEXTJOIN formula (which is a better way to join cells/ranges)

=TEXTJOIN(CHAR(10),TRUE,A2:C2)

Note that in order to get the line break visible in the cell, you need to make sure that ‘Wrap Text’ is enabled. If the Wrap Text is NOT applied, adding Char(10) would make no changes in the formula result.

Note: If you are using Mac, use Char(13) instead of Char(10).

Using Define Name Instead of Char(10)

If you need to use Char(10) or Char(13) often, a better way would be to assign a name to it by creating a defined name. This way, you can use a shortcode instead of typing the entire CHAR(10) in the formula.

Below are the steps to create a named range for CHAR(10)

Now you can use LB instead of =CHAR(10).

So the formula to combine address can now be:

=A2&LB&B2&LB&C2

Using Find and Replace (the CONTROL J Trick)

This is a super cool trick!

Suppose you have a dataset as shown below and you want to get a line break wherever there is a comma in the address.

Address where comma needs to be replaced by a line break

If you want to insert a line break wherever there is a comma in the address, you can do that using the FIND and REPLACE dialog box.

Below are the steps to replace the comma with a line break:

  1. Select the cells in which you want to replace the comma with a line break
  2. Click the Home tabClick the Home tab
  3. In the Editing group, click on Find and Select and then click on Replace (you can also use the keyboard shortcut Control + H). This will open the Find and Replace dialog box.Click on Replace
  4. In the Find and Replace dialog box, enter comma (,) in the Find What field.Enter comma in Find what field
  5. Place the cursor in the Replace Field and then use the keyboard shortcut – CONTROL + J (hold the Control key and then press J). This will insert the line feed in the field. You may be able to see a blinking dot in the field after you use Control + JUse Control J in the Replace with field
  6. Click on Replace ALL.Click on Replace all
  7. Make sure Wrap text is enabled.

The above steps remove the comma and replace it with the line feed.

Note that if you use the keyboard shortcut Control J twice, this will insert the line feed (carriage return) two times and you will have a gap of two lines in between sentences.

You can also use the same steps if you want to remove all the line breaks and replace it will a comma (or any other character). Just reverse the ‘Find What’ and ‘Replace with’ entries.

You may also like the following Excel tutorials:

  • Insert a watermark in Excel.
  • Excel AUTOFIT: Make Rows/Columns Fit the Text Automatically
  • Insert Picture in an Excel Cell.
  • Add Bullet Points In Excel
  • Insert a Check Mark Symbol in Excel
  • 200+ Excel Keyboard Shortcuts.
  • How to Create Named Ranges in Excel

To start a new line of text or add spacing between lines or paragraphs of text in a worksheet cell, press Alt+Enter to insert a line break. Double-click the cell in which you want to insert a line break.

Contents

  • 1 How do you insert a line break?
  • 2 How do you press Enter in Excel and stay in the same cell?
  • 3 How do you go down a line without pressing Enter?
  • 4 How do you enter a new line in Excel formula?
  • 5 How do you use enter within a cell in Excel?
  • 6 How do you type a line break symbol?
  • 7 Which key combination is used to insert a line break?
  • 8 What is the shortcut-key for manual line break?
  • 9 What is LF line ending?
  • 10 How do you type a line feed?
  • 11 What is linefeed?
  • 12 What does F12 do on a laptop?
  • 13 What will be the use of Ctrl J?
  • 14 What is the shortcut key for 1.5 line spacing?

How do you insert a line break?

To add spacing between lines or paragraphs of text in a cell, use a keyboard shortcut to add a new line. Click the location where you want to break the line. Press ALT+ENTER to insert the line break.

How do you press Enter in Excel and stay in the same cell?

Stay in the same cell after pressing the Enter key with Shortcut Keys. In Excel, you can also use shortcut keys to solve this task. After entering the content, please press Ctrl + Enter keys together instead of just Enter key, and you can see the entered cell is still selected.

How do you go down a line without pressing Enter?

If you are searching for a way to move the cursor down a line without pressing the Enter key but still break the current line at that point, consider using a line break (Ctrl+Shift+L).

How do you enter a new line in Excel formula?

Create a new line in formula to make it easier to read
The Excel line break shortcut can do this too. In a cell or in the formula bar, place the cursor before the argument that you want to move to a new line and press Ctrl + Alt. After that, press Enter to complete the formula and exit the edit mode.

How do you use enter within a cell in Excel?

Click the location inside the cell where you want to break the line or insert a new line and press Alt+Enter.

How do you type a line break symbol?

A line break is a break in the current line of text that doesn’t create a new paragraph and is often done using the shortcut Shift + Enter . The image to the left shows that the line break resembles a symbol of an arrow pointing down and to the left. The same symbol is found on the Enter key on many computer keyboards.

Which key combination is used to insert a line break?

Shift + Enter is the shortcut-key for manual line break.

What is the shortcut-key for manual line break?

Shift + Enter
Shift + Enter is the shortcut-key for manual line break.

What is LF line ending?

On UNIX, text file line-endings are terminated with a newline character (ASCII 0x0a, represented by the n escape sequence in most languages), also referred to as a linefeed (LF).On the Mac Classic (Mac systems using any system prior to Mac OS X), line-endings are terminated with a single carriage return (r or CR).

How do you type a line feed?

There are two basic new line characters: LF (character : n, Unicode : U+000A, ASCII : 10, hex : 0x0a): This is simply the ‘n’ character which we all know from our early programming days. This character is commonly known as the ‘Line Feed’ or ‘Newline Character’.

What is linefeed?

(1) A character code that advances the screen cursor or printer to the next line. The line feed is used as an end-of-line code in Unix. In Windows, DOS and OS/2 text files, the return/line feed pair (ASCII 13 10) is the standard end of line code.

What does F12 do on a laptop?

The F12 key is a function key found at the top of almost all computer keyboards. The key is most often used to open Firebug, Chrome Developer Tools, or other browsers debug tool.

What will be the use of Ctrl J?

In Microsoft Word and other word processor programs, pressing Ctrl+J aligns the selected text or line to justify the screen.

What is the shortcut key for 1.5 line spacing?

Ctrl+5
Pressing Ctrl+5 changes to 1.5 line spacing.

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 new lines 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:

=A1&CHAR(10)&CHAR(10)&B1

Please note: In order to see the line breaks, entered via Excel formulas, you have to activate “Wrap Text”: Just click on the “Wrap Text” button on the Home ribbon.

Activate "Wrap Text" in order to see line breaks entered in Excel formulas (with CHAR(10))

Activate “Wrap Text” in order to see line breaks entered in Excel formulas (with CHAR(10))

How to search for new lines 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 new lines. 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 new lines 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.


Do you want to boost your productivity in Excel?

Get the Professor Excel ribbon!

Add more than 120 great features to Excel!


Replace or remove line breaks with the SUBSTITUTE function

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

Of course, replacing or removing new lines 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:

=SUBSTITUTE(B3,CHAR(10)," ")
  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:

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

Image by Free-Photos from Pixabay

Henrik Schiffner is a freelance business consultant and software developer. He lives and works in Hamburg, Germany. Besides being an Excel enthusiast he loves photography and sports.

What is a Line Break in Excel Cell?

Line break in Excel means inserting a new line in any cell value. Simply pressing the “Enter” key can take us to the next cell. We can use the keyboard shortcut, “ALT + Enter,” to insert a new line inside a cell to insert a line break. As we insert a line break, the cell’s height also increases as it represents the data in the cell.

Table of contents
  • What is a Line Break in Excel Cell?
    • How to Insert Line Break in Excel Cell?
      • Method #1  – Line Break with Excel Formula (& Function)
      • Method #2  – Line Break with Excel Formula (Concatenate)
    • Method #3  – Line Break in Excel Cell (Conventional way)
    • Things to Remember
    • Recommended Articles

How to Insert Line Break in Excel Cell?

  1. Concatenate Function in excelThe CONCATENATE function in Excel helps the user concatenate or join two or more cell values which may be in the form of characters, strings or numbers.read more.
  2. AND function
  3. Use of Alt + Enter Method.

You can download this Line Break Excel Template here – Line Break Excel Template

Method #1  – Line Break with Excel Formula (& Function)

Suppose we have the name, phone number, and department name in a column. We want them in a single cell combined, but a line separates all three. The data is as follows:

Use Concatenates function 1

We want all the three data combined in one column D column and want each data to be separated by a line. We will learn the method of using the AND function in this example. But, first, we need to understand what a CHAR function is. Char function in excelThe character function in Excel, also known as the char function, identifies the character based on the number or integer accepted by the computer language. For example, the number for character «A» is 65, so if we use =char(65), we get A.read more: returns the character specified by our computer, a specific code.

Use Concatenates function 1-1

Char(10) returns a line break in the cell.

Below are the steps of inserting line break in Excel:

  1. Now, we need to wrap the text D column to see all the data in the D column.

    Concatenates-Function-step-1

  2. Select the blank cells opposite to the data in the D column.

    Concatenates-Function-step-2

  3. Click on the Excel Wrap Text in the Alignment section of the Home tab.

    Concatenates Function step 2

  4. Now in cell D2, we must write the following formula:

    Concatenates Function step 4

  5. Now, press the Enter key to see the result.

    Concatenates Function step 4

  6. We currently do not see the whole data; we need to expand the row by clicking on the expand row button by hovering our mouse between the two cells, A2 and A3.

    Concatenates Function step 5

  7. Now, drag the formula to cell D6.

    Concatenates Function step 5

    We can see that we have successfully inserted a line break in cells using the AND formula.

Method #2  – Line Break with Excel Formula (Concatenate)

In the above example, we used the AND formula to insert a line break in a cell. We will learn to insert a line break in the cell using the CONCATENATE function. But first, what is a CONCATENATE  function? The CONCATENATE function joins several strings or numbers, or values into a single string.

Line Break Example 2

Also, we know what a CHAR function does, but for our revision, let us look again at what a char function does. The CHAR function returns the character specified by our computer, a specific code.

Line Break Example 2-1

The CHAR(10) inserts a line break in a cell. Now, have a look at the below data:

Line Break Example 2-2

We have a house number, street name, locality, and city in columns A, B, C, and D. Like we fill out forms, it is the same. However, we want the combined address in the E column. We will use the CONCATENATE  formula and the CHAR function to insert a line break in the cell.

  • Step #1 –  First, we need to wrap the text to see all the data.

Line Break Example 2-3

  • Step #2 – Select all the cells parallel to data in the E column.

Line Break Example 2-4

  • Step #3 – Now, click on “Wrap text” under the “Alignment” section in the “Home” tab.

Line Break Example 2-5

  • Step #4 – In cell E2, we must write the following formula:

Line Break Example 2-6

  • Step #5 – When we press the “Enter” key, we can see the following result:

Line Break Example 2-7

  • Step #6 – We currently do not see the whole data. We need to expand the row by clicking on the expand row button by hovering our mouse between the two cells, A2 and A3.

Line Break Example 2-8

  • Step #7 – Now, we must drag the formula to cell E8 and see the result.

Line Break Example 2-9

We have successfully inserted a line break using the concatenate excel formulaThe CONCATENATE function in Excel helps the user concatenate or join two or more cell values which may be in the form of characters, strings or numbers.read more.

Method #3  – Line Break in Excel Cell (Conventional way)

We will use the last and the most convenient way of using a line break in a cell while working on data. We need to keep in mind that this method only works in a cell. For the next cell, we need to repeat the process. We cannot copy the same formula to other cells like a formula.

We will try to insert a line break in the sentence “I am a Boy” and insert a line break after every word.

  • Step #1 –  In any cell, double click on the cell or press the F2 button to get in the cell.
  • Step #2 – Write I and press the “Alt + Enter” keys.

Line Break Example 3

  • Step #3 – We can see that it inserted a line break after I. Now, do this for every word.

Line Break Example 3-1

  • Step #4 – Press the “Enter” key and see the result.

Line Break Example 3-2

We have successfully inserted a line break using the “Alt + Enter” method.

Things to Remember

There are a few things we need to remember in line breaks:

  1. To use AND and CONCATENATE functions, we must wrap text to view the whole data.
  2. We must expand the rows after wrapping the text.
  3. The CHAR (10) function inserts a line break.
  4. The “Alt + Enter” method works in a single cell. However, for it to work in another cell, we must repeat the process.

Recommended Articles

This article is a guide to Line Break in Excel Cell. We discuss how to insert a line break in Excel using 1) AND Formula, 2) CONCATENATE  Formula, and 3) Alt + Enter method, along with practical examples and a downloadable template. You may learn more about Excel from the following articles: –

  • BreakPoint in VBA
  • Excel Concatenate Columns
  • Concatenate Function in VBA
  • Format Phone Numbers in Excel

Line Break in Excel

Line Break in Excel (Table of Contents)

  • Introduction to Line Break in Excel
  • Methods to Insert Line Breaks

Introduction to Line Break in Excel

Actually, we do not think about line breaks while using them. They are used in many situations, like when we are writing an Email or posting something on social media or starting a new paragraph on MS Powerpoint or MS word, etc. They are easy to add in most programs, and for this, the only thing we have to do is press Enter on your keyboard. But this does not work in Excel. If we ever try to add a line break in Excel by pressing ENTER, we go to the next cell in our worksheet. It seems impossible. But do not worry about it.

Methods to Insert Line Breaks

Here, we have two methods to add line breaks in Excel.

  1. By using the keyboard shortcut
  2. By using formula

Method #1 – By Using Keyboard Shortcut

For this, double click the cell and then bring the cursor where you want to insert the line break. After this, use the keyboard shortcut ALT + ENTER.; this will add a line break to the right of the cursor. Here, we have a simple keyboard shortcut to add line breaks in any cell in Excel. Press Alt + Enter ( Ctrl + Option + Enter for Mac). This will automatically set Wrap Text ON for the cell.

line break in excel 1-1

In this example, we want the line break in cell A5. So, we double-click the cell and bring the cursor (after “a”) where we want the line break and press “ALT+ENTER.” Then we get a result.

line break in excel 1-2

Similarly, we can insert line breaks in any cell. For example, suppose we want to add a line break after the second “m” in cell A3.

line break in excel 1-3

For this, we have to double click the cell A3 and bring the cursor after the second “m,” then press Alt+Enter. Now, we have another example.

line break in excel 1-4

Here, we have inserted the line break after five digits of Mobile no. in cell C4. But when we have to do the same in many cells, this method is time-consuming and inefficient. In that case, we use a formula to add a line break.

Method #2 – By Using Formula

We cannot use a keyboard shortcut when we have to insert line breaks in many Excel cells. In this case, we have to use a formula to insert the line break.

Formula:

=”text”&CHAR(10)&”text”

Using Formula 1

We use the concatenation operator with the CHAR function in the above-written formula to add a line break. CHAR function returns the result based on the ASCII code, which is a character code. Here, we have some examples to explain the working of this formula.

Using Formula 2

In the example shown, we want to write the text from cell A2, B2, and C2 with line breaks in D2. For this, enable the Wrap Text first and then use the formula “=A2&CHAR(10)&B2&CHAR(10)&C2”.

The above-written formula glues the text in A2, B2, and C2 using the ampersand, the concatenation operator in MS Excel. We get the result.

Using Formula 3

In the example shown, we want to write the text from cell A3, B3, and C3 with line breaks in D3. For this, enable the Wrap Text first and then use the formula “=A3&CHAR(10)&B3&CHAR(10)&C3”.

Using Formula 4

Thus the character function in this formula combines the text that appears in A3, B3, and C3. We get the result.

Using Formula 5

In this example shown, we want to write the text from cell A4, B4, and C4 with line breaks in D4. For this, enable the Wrap Text first and then use the formula “=A4&CHAR(10)&B4&CHAR(10)&C4”.

Using Formula 6

Thus the character function in this formula combines the text that appears in A4, B4, and C4, and we get the result.

Using Formula 7

In this example shown, we want to write the text from cell A5, B5, and C5 with line breaks in D5. For this, enable the Wrap Text first and then use the formula “=A5&CHAR(10)&B5&CHAR(10)&C5”.

Using Formula 8

Thus the character function in this formula combines the text that appears in A5, B5, and C5, and we get the result.

Using Formula 9

Conclusion

ASCII stands for American Standard Code for Information Interchange. Line Feed means moving the cursor to the beginning of the next line But remember to insert the line break in MS Excel; first, we have to enable the Wrap Text; otherwise, the CHAR function will make no changes in the result. And for this, select the cell with the formula, then go to Home, then Alignment, then Wrap Text. If you are using Mac, use 13 instead of 10 as an argument of the CHAR function, which represents “carriage return”. Carriage return brings the cursor to the beginning of the current line.

Things to Remember About Line Break in Excel

  • A keyboard shortcut is a good way to insert a line break in a small no. of cells but add a line break in a large number of cells and use the CHAR function.
  • CHAR function returns the result on the base of a character code.
  • It uses parameter 10 for windows and 13 for Mac. Here, 10 represents “line feed”, and 13 represents “carriage return”.
  • Lie Feed means moving the cursor to the next line and Carriage Return means moving the cursor to the beginning of the current line.
  • When we use a shortcut, it will enable the Wrap Text automatically.
  • MS Excel does not enable the Wrap Text by itself when we use the formula to add a line break. We have to enable it manually.

Recommended Articles

This is a guide to Line Break in Excel. Here we discuss How to Insert Line Break in Excel along with practical examples and a downloadable excel template. You can also go through our other suggested articles –

  1. Break Links in Excel
  2. Find External Links in Excel
  3. New Line in Excel Cell
  4. Print Gridlines in Excel

Like this post? Please share to your friends:
  • Can you do a half space in word
  • Can you describe yourself in one word
  • Can you describe me in one word answers
  • Can you cut picture in word
  • Can you create reports in excel