The Enter key moves you down one cell, but Excel also has dedicated "return" behaviors like line breaks inside a cell, carriage returns in formulas, and returning to a starting cell after data entry. If you mean wrapping text onto a new line inside one cell, press Alt+Enter (Windows) or Option+Return (Mac) where you want the break. If you mean moving the cursor somewhere specific after pressing Enter, adjust the setting under File > Options > Advanced > "After pressing Enter, move selection." This guide covers both, plus related tricks that trip people up.
What You'll Need
- Excel for Windows, Excel for Mac, or Excel for the web (menu labels and shortcut keys differ slightly between platforms and versions)
- A workbook with at least a few cells of text to practice the line-break and navigation steps
- A standard keyboard with Alt and Enter keys (Windows) or Option and Return keys (Mac)
Step-by-Step
Part 1: Adding a Line Break Inside a Cell
- Click the cell where you want two or more lines of text in one cell.
- Type the first line of text, but do not press Enter yet. Pressing Enter alone commits the entry and moves the cursor.
- Place the cursor exactly where you want the break. You can click into the text or use the arrow keys; you do not have to break at the end of a word.
- On Windows, hold Alt and press Enter. On Mac, hold Option and press Return. This inserts a line break inside the cell rather than ending the entry.
- Type the next line. Repeat Alt+Enter (or Option+Return) for each additional line.
- When you are finished, press Enter alone to commit the cell. The text now sits on multiple lines.
- If the extra lines are hidden, turn on text wrapping. Select the cell, then go to the Home tab and click Wrap Text in the Alignment group. Increase the row height if needed by dragging the row border.
Part 2: Making Enter Move Where You Want
- Open File > Options. On Mac, use Excel > Preferences or Excel > Settings depending on your Office version.
- Select Advanced in the left pane.
- Find the section labeled Editing options.
- To control direction, use the checkbox "After pressing Enter, move selection" and the drop-down beside it to choose Down, Up, Right, or Left.
- Clear the checkbox entirely if you want Enter to leave the cursor in the same cell. This is useful when you are editing one cell repeatedly.
- Click OK to save. The change applies to the current session and later files.
Note that these labels can differ slightly by Excel version, device, or region, so look for the phrasing closest to the above.
Part 3: Typing a Carriage Return in a Formula
- Click the cell where the formula result should appear.
- Build your formula normally, for example
=A1 & A2. - Where you want a line break in the result, insert the character code for a return: on Windows use
CHAR(10), so the formula becomes=A1 & CHAR(10) & A2. - Press Enter, then turn on Wrap Text for that cell so the break is visible. Without wrapping, the line break is stored but not displayed.
- On Mac, the in-cell break character is typically
CHAR(13); if one does not render, try the other, since behavior varies between versions. - To remove existing hard returns from imported text, use Find and Replace: press Ctrl+H (Windows) or Control+H (Mac), type Ctrl+J in the Find box to represent the line-break character, leave Replace empty, and choose Replace All.
Part 4: Returning to a Starting Cell After Data Entry
- Select the full range you want to fill, such as a column block, before you start typing.
- Type in the first cell and press Enter. Excel moves to the next cell inside the selection.
- Excel cycles within the selected range and wraps back to the start when you reach the end, so select the exact range to control where the cursor returns.
- To jump back to a fixed home cell at any time, press Ctrl+Home (Windows) or Control+Home (Mac).
- To return to the last edited cell after scrolling far away, press Ctrl+Backspace (Windows) or Control+Delete (Mac).
Common Mistakes
- Pressing Enter to break a line. That ends the entry and moves the cursor; use Alt+Enter on Windows or Option+Return on Mac instead.
- Forgetting Wrap Text. Line breaks are invisible in a cell that is set to no wrapping, which looks like the break did not work.
- Typing literal characters like a backslash-n inside a formula. Excel does not interpret escape sequences; use CHAR(10) and concatenate.
- Confusing Enter navigation with line breaks. One is for editing inside a cell, the other moves between cells.
- Leaving the cursor in a cell by clearing "After pressing Enter" and then wondering why typing does not advance. Re-enable the checkbox.
- Using Find and Replace with a normal space, which deletes spaces rather than returns.
Tips
- The fastest sanity check for a hidden line break: click the cell, look at the formula bar, and check whether the text drops to a second line there.
- Set a narrow column and turn on Wrap Text for long notes; Excel auto-sizes row height in most cases, but you can double-click the row border to fit.
- Use Ctrl+Enter (Windows) or Control+Return (Mac) to fill every selected cell with the same entry at once, which is handy for repeated labels.
- When pasting multi-line text from another program, wrap the destination cells first so the breaks appear correctly.
- If you type in a form or table, Tab and Enter behaviors can differ from a normal range; test one row before filling many.
- Consider whether the field really needs simultaneous lines. For data you plan to sort or filter, keep each value in its own column instead.
Troubleshooting
- The Alt+Enter shortcut does nothing. Check that you are in edit mode inside the cell, not just selected on the sheet. Press F2 to enter edit mode, then try again. Some laptop keyboards need the Fn key held with Alt+Enter.
- The line break exists but text is cut off. Select the cell, click Wrap Text, then increase row height by dragging the row header border or using Home > Format > AutoFit Row Height.
- Enter jumps to the wrong cell. Revisit File > Options > Advanced and confirm the direction setting, and check whether a range is still selected, since Excel cycles within it.
- Enter does nothing at all. Another program or an add-in may be intercepting the key. Close background apps, then restart Excel. Sign out and back in to your Microsoft account if the file is stored online.
- Formulas show CHAR(10) breaks as a small box. This usually means the cell is not wrapped, or the font cannot render the character; apply Wrap Text first.
- The file was imported and has stray blanks and breaks. Clean it with Find and Replace as described, then delete any empty rows with Home > Delete > Delete Sheet Rows. Save a copy first, because deletions cannot be undone once the file is closed.
Frequently Asked Questions
What is the shortcut for a new line in an Excel cell?
Alt+Enter on Windows and Option+Return on Mac. Both insert a line break inside the cell while you are editing.
Why does pressing Enter move my cursor instead of adding a line?
Because Enter commits the entry by default. To change where the cursor goes, adjust the setting under File > Options > Advanced.
How do I remove line breaks from many cells at once?
Select the range, open Find and Replace, type Ctrl+J in the Find field, leave Replace empty, and click Replace All.
Does Excel for the web support Alt+Enter?
In-cell line breaks are supported in Excel for the web, though keyboard behavior varies by browser. If the shortcut fails, use the browser's cell editor and reapply Wrap Text after pasting.
Can I return to a cell I was editing after scrolling away?
Yes. Use Ctrl+Backspace on Windows or Control+Delete on Mac to jump back to the last edited cell.
Why do my formula line breaks not show?
The formula returns the break character but the cell must have Wrap Text enabled and a tall enough row for the extra line to be displayed.