To insert a new line character in an Excel string, press Alt+Enter while editing a cell. This is the direct method. For formulas, use CHAR(10) (Windows) or CHAR(13) (Mac) to concatenate text with line breaks. You must also enable Wrap Text on the cell for the line break to display correctly. This guide covers all three methods, plus how to find and remove line breaks.

What You'll Need

  • Microsoft Excel (desktop version for Alt+Enter; Excel for the web supports it too)
  • A cell containing text, or a formula you want to modify
  • Knowledge of where the Wrap Text button is (it's on the Home tab, in the Alignment group)

Step-by-Step

Method 1: Manual Line Break with Alt+Enter

  1. Double-click the cell where you want the line break. This puts Excel in edit mode. You can also press F2 after selecting the cell.
  2. Click at the exact position in the text where you want the break to appear. The cursor must be between characters, not at the start or end of the text.
  3. Press Alt+Enter on Windows. On a Mac, press Control+Option+Return or Control+Command+Return, depending on your keyboard layout. Excel inserts an invisible line break character.
  4. Press Enter to finish editing the cell. The text will appear on two lines inside the cell.
  5. If the line break does not show, select the cell, go to the Home tab, and click Wrap Text in the Alignment group. The cell height will adjust to show both lines.

Method 2: Line Break in a Formula Using CHAR(10)

When you build a string with a formula (for example, joining a first name in A1 and a last name in B1), you need to insert the line break character manually because you cannot press Alt+Enter inside a formula. The CHAR function returns the character for a given ASCII code. On Windows, line break is character 10 (line feed). On Mac, it's character 13 (carriage return).

  1. Select the cell where you want the combined text.
  2. Type the formula. For Windows, use: =A1 & CHAR(10) & B1. For Mac, use: =A1 & CHAR(13) & B1. The ampersand (&) is the concatenation operator in Excel.
  3. Press Enter. The cell will show the two values side by side with a strange square symbol between them if Wrap Text is off.
  4. Select the cell, go to the Home tab, and click Wrap Text. The square symbol disappears and the text splits onto two lines.
  5. If you need more than two lines, add another CHAR(10) between each part. For example: =A1 & CHAR(10) & B1 & CHAR(10) & C1.

Method 3: Using CHAR(10) with TEXTJOIN (Excel 2016 and later)

If you are combining a range of cells and want each value on its own line, TEXTJOIN with a delimiter is cleaner than many ampersands.

  1. Select the cell for the result.
  2. Type: =TEXTJOIN(CHAR(10), TRUE, A1:A5). The first argument is the delimiter (line break), the second (TRUE) tells Excel to ignore empty cells, and the third is the range to join.
  3. Press Enter.
  4. Turn on Wrap Text for that cell. Each value from A1 to A5 appears on its own line.

Making Line Breaks Visible in the Formula Bar

When you select a cell with a line break, the formula bar shows the text as a single line with a small square symbol where the break is. To see the actual line break in the formula bar, click the down arrow at the right end of the formula bar to expand it. The text will show on multiple lines.

Common Mistakes

  • Forgetting Wrap Text: The most common issue. Without Wrap Text, Excel ignores the line break character and shows the text on one line.
  • Using CHAR(13) on Windows: CHAR(13) is a carriage return, not a line feed. On Windows, Excel treats CHAR(10) as the line break. CHAR(13) may show as a square or may not break the line at all.
  • Pressing Alt+Enter while not in edit mode: If you just select a cell and press Alt+Enter, Excel may move the active cell or do nothing. You must be in edit mode (double-click or F2).
  • Copying text from another source: Text pasted from a website or Word document may contain line breaks that Excel does not recognize as CHAR(10). They may appear as squares or cause the cell to display oddly.
  • Using line breaks in a chart axis label or a cell referenced by a chart: Chart labels do not honor line breaks from cell text. You need to manually add a line break in the chart's axis label edit box by pressing Ctrl+Enter there.

Tips

  • Use Find and Replace to remove line breaks: Press Ctrl+H to open Find and Replace. In the Find what box, press Ctrl+J (this inserts a line break character, though it looks empty). Leave Replace with blank or type a space. Click Replace All to strip all line breaks from the selected range.
  • Use Find and Replace to add line breaks: If you have a list of items separated by commas or spaces, you can replace those with line breaks. In Find what, type a comma. In Replace with, press Ctrl+J. Click Replace All.
  • Adjust row height automatically: After adding line breaks, Excel usually auto-fits the row height when Wrap Text is on. If not, select the row, go to Home, and click Format > AutoFit Row Height.
  • Use in headers and footers: In Page Setup, you can insert line breaks in headers or footers by pressing Alt+Enter in the header/footer text box.
  • Concatenate with a space and line break: Sometimes you want a space before the line break for readability. Use: =A1 & " " & CHAR(10) & B1.
  • Check for non-printing characters: If a line break is not working, use the CLEAN function to remove all non-printing characters from the text, then re-add the break with CHAR(10).

Troubleshooting

Line break not showing even with Wrap Text on: First, confirm the cell actually contains a line break. Select the cell, look in the formula bar. If you see a small square symbol, the break is there. If you see nothing, the break was not inserted. Re-enter the cell and press Alt+Enter again. If you are using a formula, check that you used CHAR(10) on Windows and CHAR(13) on Mac.

The line break shows but the row height does not expand: The row may have a fixed height. Select the row, go to Home > Format > AutoFit Row Height. If that does not work, manually drag the row boundary down. If the row is inside a table, check that the table style does not have a fixed row height.

Line break works in the cell but not when printed: Check the print area and page setup. The row height may be clipped in print. Go to Page Layout and check the Scale to Fit settings. Also ensure Wrap Text is still on for that cell. Sometimes print preview shows a different layout than the screen.

CHAR(10) shows as a box or question mark: This usually means the font you are using does not support the line feed character, or Wrap Text is off. Switch to a standard font like Arial or Calibri. If the box persists, turn on Wrap Text.

Alt+Enter inserts a new line in the formula bar instead of the cell: This happens when the cell is not in edit mode or when the formula bar is active. Click directly into the cell (double-click) so the cursor is inside the cell, not in the formula bar. If you are editing a formula, you cannot use Alt+Enter inside the formula itself; use CHAR(10) instead.

Line breaks disappear when you reopen the file: This can happen if the file is saved in an older format like .xls that does not fully support line breaks, or if the cell format is set to "Text" and the file is opened in a different application. Save the file as .xlsx. Also check that the cell's number format is General, not Text.

Frequently Asked Questions

How do I insert a line break in a cell on a Mac?

Press Control+Option+Return or Control+Command+Return while editing the cell. In formulas, use CHAR(13) instead of CHAR(10).

Can I use a line break in a formula that references another cell?

Yes. If cell A1 contains "Hello" and you want a line break before "World" in cell B1, type: =A1 & CHAR(10) & "World". The line break is inserted by the formula, not by the source cell.

How do I remove all line breaks from a column at once?

Select the column, press Ctrl+H. In Find what, press Ctrl+J (it looks empty but inserts the line break). Leave Replace with blank. Click Replace All.

Why does my line break work in Excel but not when I copy-paste to Word?

Excel uses a line feed character (CHAR 10). Word expects a paragraph mark or a manual line break (Shift+Enter). When pasting, Word may interpret CHAR(10) as a space or a square. Use Paste Special > Unformatted Text, then find and replace the squares in Word.

Does line break work in Excel for the web?

Yes. Alt+Enter works in Excel for the web in most browsers. However, some keyboard shortcuts may be intercepted by the browser. If Alt+Enter does not work, try editing the cell and using the Insert menu (if available) or use the CHAR(10) formula method.

Can I put a line break inside a hyperlink display text?

Yes. Right-click the hyperlink cell, choose Edit Hyperlink, and in the Text to Display box, press Alt+Enter where you want the break. You must also turn on Wrap Text for that cell.