Line Break Within Excel Cell: How to Add New Lines
In this article
To insert a line break within a single Excel cell, select the cell and press Alt + Enter (Windows) or Option + Command + Return (Mac) while typing. This forces the text to move to a new line without moving the cursor to the next cell, allowing you to create lists or structured notes within one data point. This technique is essential for maintaining a clean spreadsheet layout when a single cell needs to hold multiple pieces of related information, such as an address or a set of bullet points.
What You'll Need
- A computer with Microsoft Excel installed (works on Excel 365, 2021, 2019, 2016, and earlier versions).
- A keyboard with the Alt (Windows) or Option/Command (Mac) keys.
- A dataset or a blank workbook where you wish to organize text.
Step-by-Step
- Select the Target Cell: Click on the cell where you want to enter the text. If the cell already contains data, double-click it to enter "Edit Mode," or select the cell and click into the Formula Bar at the top of the screen.
- Position the Cursor: Place your cursor exactly where you want the first line to end and the second line to begin. For example, if you are typing a name and an address, place the cursor immediately after the name.
- Execute the Shortcut:
- On Windows: Hold down the Alt key and press Enter.
- On macOS: Hold down the Option key and the Command key, then press Return. (Note: In some versions of Excel for Mac, Control + Option + Return may also work).
- Add Your Text: Once the cursor jumps to the new line within the same cell, continue typing your next piece of information.
- Repeat as Needed: You can repeat the shortcut multiple times to create three, four, or more lines of text within a single cell.
- Finalize the Entry: Once you have finished all your lines, press the Enter key (without holding Alt or Option) to commit the changes and move to the next cell.
- Adjust Row Height: If the text looks cut off or the cell doesn't seem to have expanded, hover your mouse over the boundary line of the row number on the far left. Click and drag the boundary down to increase the height, or double-click the boundary to "AutoFit" the row to the content.
Common Mistakes
One of the most frequent errors is pressing Enter alone. In Excel, the Enter key is programmed to complete the cell entry and move the selection down to the next row. When users try to create a list, they often find themselves accidentally filling an entire column with single words because they forgot to hold the modifier key (Alt or Option). This requires the user to go back and manually merge the data or re-type it using the correct shortcut.
Another common mistake is forgetting to enable "Wrap Text." While the Alt+Enter shortcut usually triggers Wrap Text automatically for that specific cell, users who copy and paste data from other sources often find that their line breaks disappear or the text continues in one long horizontal line. If you see a long string of text that should be on multiple lines, it is likely because the Wrap Text setting was disabled or reset during a formatting change.
Users also frequently confuse the line break shortcut with the "Merge and Center" feature. Merging cells creates one large visual area from several cells, but it does not allow for internal line breaks in the same way. If you merge cells and then try to use Alt+Enter, you are still only editing one of the original cells in that range, which can lead to data loss if you aren't careful about which cell actually holds the value.
Tips
To make your multi-line cells look professional, consider using a consistent delimiter. While the line break provides the visual separation, starting each new line with a dash (-) or a bullet point (created by pressing Alt+7 on the numeric keypad) can turn a messy cell into a clean, readable list. This is particularly useful for "Notes" columns in project management trackers.
If you have a massive amount of data that needs line breaks based on a specific character (like a comma), don't do it manually. You can use the "Find and Replace" tool. Press Ctrl + H, put the comma in the "Find what" box, and in the "Replace with" box, press Ctrl + J. Ctrl+J is the hidden shortcut for a line break in the Find/Replace menu. This will instantly convert every comma in your selected range into a hard return, saving hours of manual typing.
For those who need to combine data from different cells into one cell with line breaks, use a formula. For example, if you have a First Name in A1 and a Last Name in B1, use the formula =A1 & CHAR(10) & B1. The CHAR(10) function is the technical code for a line break in Windows. After entering this formula, you must click the "Wrap Text" button in the Home tab, otherwise, the result will look like a single line with a space or a strange character between the names.
Troubleshooting
The text is still on one line even after pressing Alt+Enter: Check the "Wrap Text" setting. Go to the Home tab and look in the Alignment group. If the "Wrap Text" button is not highlighted, click it. The line breaks are there, but Excel is hiding them by forcing the cell to display as a single line until wrapping is enabled.
The row height didn't change automatically: Excel usually adjusts the row height for Alt+Enter, but if you have manually adjusted the row height previously, the "AutoFit" feature is disabled for that row. To fix this, go to the Home tab, select Format (in the Cells group), and choose AutoFit Row Height. This will snap the row to the exact size needed to show all your lines.
The shortcut isn't working on my laptop: Some laptops have a "Fn" (Function) key that changes how other keys behave. While Alt and Enter are standard, ensure your keyboard isn't in a mode that intercepts these commands. If you are using a web-based version of Excel (Excel for the Web), the shortcuts are generally the same, but browser extensions or OS-level shortcuts can sometimes conflict. Try using the desktop application if the web version is unresponsive.
I see a small square or a strange symbol instead of a line break: This usually happens when you import a CSV file or move data between different operating systems (e.g., moving a file from a Mac to a Windows PC). Mac and Windows use different characters for line endings (CR vs LF). To fix this, use the Find and Replace method mentioned in the Tips section to replace the strange symbol with a fresh Ctrl + J line break.
Frequently Asked Questions
Can I use a line break in an Excel formula?
Yes, but you cannot simply press Alt+Enter inside the formula. You must use the CHAR(10) function for Windows or CHAR(13) for Mac to tell Excel to insert a line break. You must also enable Wrap Text for the result to be visible.
Does Alt+Enter work in Google Sheets?
Yes, Google Sheets uses a similar logic. On Windows, use Ctrl + Enter or Alt + Enter. On Mac, use Command + Enter. The behavior is almost identical to Excel.
How do I remove all line breaks from a column at once?
The fastest way is to use Find and Replace (Ctrl + H). In the "Find what" box, press Ctrl + J (which represents the line break). Leave the "Replace with" box empty or put a space, then click "Replace All." This will flatten all your multi-line cells back into single lines.
Will line breaks affect my data sorting or filtering?
Generally, no. Excel treats the entire content of the cell as one string of text regardless of how many line breaks are inside. However, if you are using the cell as a unique identifier for a VLOOKUP or MATCH function, ensure that the line breaks are consistent, as a cell with a line break is technically different from a cell with a space.
Can I add bullet points with line breaks?
Excel does not have a built-in bulleted list button like Microsoft Word. To achieve this, you must manually insert a bullet character (Alt+7 on the numpad) at the start of each line you create using the Alt+Enter shortcut.
Is there a limit to how many lines I can have in one cell?
There is no specific "line limit," but there is a character limit per cell (32,767 characters). Additionally, there is a limit to how much text Excel can display in a cell; if you have too many lines, the text may be truncated visually even if the data is all there in the formula bar.