Excel Insert Line Break in Cell: Easy Keyboard Shortcuts
In this article
To insert a line break in an Excel cell, double-click the cell (or press F2) to enter edit mode, click where you want the break, and press Alt + Enter on Windows or Option + Command + Return (or Control + Option + Return) on Mac. This allows you to start a new line of text within a single cell rather than moving to the cell below.
Adding manual line breaks is essential for creating clean, readable lists or addresses within a single cell. By default, Excel treats the Enter key as a command to finish editing the current cell and move the selection downward. Using the specific "wrap text" shortcuts overrides this behavior, giving you precise control over the formatting of your data.
What You'll Need
- A computer with Microsoft Excel installed (works across most versions including Office 365, 2021, 2019, and 2016).
- A keyboard.
Step-by-Step
- Select the cell: Click on the cell where you want to add the line break. If the cell already contains text, you must enter "Edit Mode."
- Enter Edit Mode: You can do this in one of three ways:
- Double-click the cell with your mouse.
- Select the cell and press the F2 key.
- Select the cell and click inside the Formula Bar at the top of the screen.
- Position the cursor: Use your mouse or arrow keys to place the blinking cursor exactly where you want the text to break and move to the next line.
- Apply the shortcut:
- Windows: Hold down the Alt key and press Enter.
- Mac: Hold down Option + Command and press Return. (Depending on your keyboard layout and version, Control + Option + Return also works).
- Finish the entry: Once you have added all your desired line breaks, press the Enter key (without holding any modifiers) to save the changes and exit the cell.
Common Mistakes
Pressing Enter alone: The most common mistake is simply pressing the Enter key. In Excel, this tells the program you are finished with that cell and want to move to the row below. Always remember to hold the modifier key (Alt or Option) first.
Forgetting to enter Edit Mode: If you select a cell and press Alt + Enter without double-clicking or pressing F2 first, some versions of Excel may not register the break correctly or may simply select the cell. Ensure the cursor is blinking inside the text.
Confusing "Wrap Text" with "Line Breaks": Many users click the "Wrap Text" button in the Ribbon and wonder why the text doesn't break exactly where they want it. Wrap Text is automatic based on column width; a manual line break is a hard return that stays in place regardless of how wide the column is.
Tips
- Combine with Wrap Text: If your line breaks aren't appearing and the text looks like one long line, ensure the Wrap Text feature is enabled. Go to the Home tab and click Wrap Text in the Alignment group.
- Adjusting Row Height: After inserting a line break, Excel usually adjusts the row height automatically. If the text looks cut off, hover your mouse over the boundary line of the row number on the far left and double-click to "AutoFit" the height.
- Using Find and Replace: If you have a large dataset where you want to replace a specific character (like a comma) with a line break, you can use the Find and Replace tool. In the "Replace with" box, press Ctrl + J. This is the hidden shortcut for a carriage return in the Find/Replace dialog.
Troubleshooting
The text is still on one line: If you pressed the shortcut but the text hasn't moved down, check if Wrap Text is turned off. Manual line breaks require the cell to be set to wrap text to be visible. Go to Home > Wrap Text to enable it.
The cell looks empty or cut off: Your row height might be too short. Drag the bottom border of the row header down to expand the cell, or double-click the border to automatically fit the new multi-line content.
The shortcut isn't working on Mac: Mac shortcuts can vary slightly by OS version. If Option + Command + Return does not work, try Control + Option + Return. Ensure your keyboard is recognized as a standard Mac layout.
Frequently Asked Questions
Can I insert a line break using a formula?
Yes. You can use the CHAR function. On Windows, use = "First Line" & CHAR(10) & "Second Line". On Mac, use CHAR(13). You must enable "Wrap Text" on the cell for the formula result to show the break.
How do I remove a manual line break?
Double-click the cell to enter Edit Mode, place your cursor at the start of the second line, and press Backspace. Alternatively, use Find and Replace (Ctrl + H), put Ctrl + J in the "Find what" box, and leave "Replace with" empty.
Does this work in Excel Online (Web version)?
Yes, the Alt + Enter shortcut generally works in the web version of Excel, provided your browser is not intercepting the keyboard command for its own shortcuts.
Is there a limit to how many line breaks I can add?
There is no specific limit to the number of line breaks, but there is a limit to the total number of characters a cell can hold (32,767 characters). Additionally, a row's maximum height is 409 points; if you add too many lines, the text will be cut off at the bottom.
Why does my text move to the next cell instead of the next line?
This happens because you are pressing Enter without holding the Alt or Option key. Excel interprets a lone Enter key as a command to navigate to the next row.