How to Move to the Next Line in Excel (Shortcut & Fixes)

How-to basics · Updated November 23, 2026

To move to the next line within the same cell in Excel, press Alt+Enter on Windows (or Control+Option+Return on a Mac). This inserts a line break and moves your cursor to a new line inside that cell, without jumping to the next cell below. If you want to move to the next line in the spreadsheet (i.e., the next row), simply press Enter (or Return on Mac).

Why Alt+Enter Is Not Obvious

In most programs, pressing Enter moves you to the next line of text. Excel breaks that expectation because Enter is reserved for confirming the content of a cell and moving the selection down one row. The line break inside a cell is a separate action, which is why Microsoft assigned a shortcut that involves the Alt key. This design dates back to early spreadsheet software, where the grid was the primary focus and text wrapping was an afterthought. Understanding this distinction is the first step to controlling where your text goes.

How to Insert a Line Break (Step by Step)

  1. Click on the cell where you want multiple lines of text.
  2. Type the first line of text. Do not press Enter yet.
  3. Press Alt+Enter (Windows) or Control+Option+Return (Mac).
  4. Type the second line of text. Repeat step 3 for each additional line.
  5. Press Enter (or click another cell) to finish editing the cell.

If you are editing a cell that already contains text, double-click the cell (or press F2) to enter edit mode, then place your cursor where you want the break and press Alt+Enter.

How to Make Line Breaks Visible and Useful

By default, a cell with a line break may not show all its lines if the row height is too small or if wrap text is off. To fix this:

  • Select the cell(s) and go to Home > Wrap Text. This makes the text wrap within the cell, but it also wraps long lines automatically.
  • Adjust the row height manually by dragging the bottom border of the row header, or double-click the row header to auto-fit the height to the content.
  • If you want only the manual line breaks to show (not automatic wrapping), keep Wrap Text off and set the row height to fit the number of lines.

To see where line breaks are in a cell, press Ctrl+Shift+U to expand the formula bar, or use the formula bar’s expand/collapse button at the right end.

Using Line Breaks in Formulas and Concatenation

Line breaks are not just for typing—they can be inserted into formulas using the CHAR function. The character code for a line break is 10 in Windows (and 13 on older Macs, but Excel for Mac now uses 10 as well). For example, to combine two cells with a line break between them:

Assume cell A1 contains “First Name” and B1 contains “Last Name”. In C1, enter:

=A1 & CHAR(10) & B1

This returns “First Name” on one line and “Last Name” on the next, but only if the cell has Wrap Text enabled. Without wrap text, the line break will not display as a new line—it will appear as a small square or be invisible.

You can also use CHAR(10) inside functions like TEXTJOIN. For instance, with names in A2:A5, =TEXTJOIN(CHAR(10), TRUE, A2:A5) joins them with line breaks. Note that TEXTJOIN is available in Excel 2019 and later.

Common Problems and Fixes

  • Alt+Enter does nothing: Make sure you are in edit mode. If you are not, press F2 first, or double-click the cell. Also check that your keyboard’s Alt key works (try Alt+Tab).
  • Line break shows as a square or is invisible: This happens when Wrap Text is off. Turn on Home > Wrap Text to see the break.
  • Row height does not auto-fit: If you manually set a row height, Excel will not auto-fit. Right-click the row number, choose Row Height, and set it to 0 (zero) to force auto-fit, or double-click the row boundary.
  • Line break disappears when copying: When you copy a cell with a line break into another application (like Notepad), it may appear as a space or be removed. In Excel, it stays, but if you paste into a browser, it might not preserve. Use Paste Special > Values if needed.
  • Mac shortcut not working: On some Mac keyboards, the Option key is labeled “Alt”. Try Control+Option+Return, or check your Excel preferences for keyboard shortcuts.

Moving to the Next Line vs. Next Row

It is easy to confuse the two. Here is a quick reference:

  • Next line inside the same cell: Alt+Enter (Windows) / Control+Option+Return (Mac).
  • Next row (cell below): Enter (Windows) / Return (Mac). This moves the selection down one cell.
  • Next row without moving selection: Ctrl+Enter (Windows) / Control+Return (Mac) fills the cell and keeps the same cell selected.
  • Move to the next line in the formula bar: Press Alt+Enter while typing in the formula bar (same as in-cell).

Alternatives to Manual Line Breaks

If you are frequently adding line breaks, consider these alternatives:

  • Wrap Text: Instead of manual breaks, let Excel wrap text automatically based on column width. This is easier for long paragraphs but gives you less control over where lines break.
  • Merge Cells: Merge multiple cells vertically to create a larger area, but this can cause issues with sorting and formulas.
  • Text Box: Insert a text box (Insert > Text Box) for free-form text that is not constrained by cell boundaries. Text boxes support automatic wrapping and line breaks with Enter, but they are not part of the grid.
  • Use a formula to generate line breaks: As shown above, CHAR(10) can be used to combine text dynamically, which is useful when the content comes from other cells.

Frequently Asked Questions

How do I remove a line break in Excel?

To remove a line break, select the cell, press F2 to edit, place your cursor at the end of the line before the break, and press Delete. If you have many cells with line breaks, you can use Find & Replace: select the range, press Ctrl+H, in “Find what” type Ctrl+J (this inserts a line break character), leave “Replace with” empty, and click Replace All.

Can I use Alt+Enter in Google Sheets?

Yes, in Google Sheets, press Ctrl+Enter on Windows or Command+Enter on Mac to insert a line break inside a cell. The shortcut is different from Excel’s Alt+Enter, which in Google Sheets moves to the next cell.

Why does my line break not show when I print?

Line breaks print exactly as they appear on screen, provided the row height is sufficient and Wrap Text is on. If the row height is too small, the printout may cut off lines. Check Print Preview and adjust row heights or page setup (e.g., set to Fit Sheet on One Page) to see the full content.

How do I add a line break in a header or footer?

In the Page Setup dialog (Page Layout > Print Titles), under Header/Footer, click Custom Header or Custom Footer. In the editing box, press Alt+Enter to insert a line break. This works the same as in cells.

Is there a way to make Enter move to the next line instead of the next cell?

No, Excel does not have a built-in setting to change Enter’s behavior to insert a line break. You would need to use Alt+Enter every time. However, you can use a macro to remap Enter, but that is not recommended for normal use because it would break normal navigation.

Does Alt+Enter work in the formula bar?

Yes, Alt+Enter works in the formula bar just as it does in the cell. You can press it while typing a formula to add a line break for readability, but note that line breaks in formulas are allowed and do not affect calculation.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.