Enter Second Line in Excel Cell: Keyboard Shortcuts & Tips
In this article
To enter a second line in an Excel cell, use the keyboard shortcut Alt + Enter (on Windows) or Option + Command + Return (on Mac). This action creates a manual line break, allowing you to start a new paragraph or list within a single cell rather than having the text spill across multiple columns or be cut off by the cell border. This is essential for organizing addresses, detailed notes, or multi-part descriptions without needing to merge cells or create additional rows.
What You'll Need
- A computer with Microsoft Excel installed (works across most versions including Office 365, Excel 2021, 2019, and 2016).
- A keyboard with an Alt key (Windows) or Option/Command keys (Mac).
- A worksheet with data entered or a blank cell ready for input.
Step-by-Step
- Select the Cell: Click on the cell where you want to enter the multi-line text. If you are editing an existing cell, double-click it to enter "Edit Mode," or select the cell and click inside the Formula Bar at the top of the screen.
- Type Your First Line: Enter the first piece of information. For example, if you are entering a mailing address, type the recipient's name and then stop.
- Insert the Line Break:
- On Windows: Press and hold the Alt key, then press the Enter key once.
- On Mac: Press and hold Option + Command, then press the Return key. (Note: In some versions of Excel for Mac, Control + Option + Return may also work).
- Observe the Cursor Shift: You will notice the cursor jump immediately to a new line within the same cell. The row height will automatically expand to accommodate the second line of text.
- Type the Second Line: Enter your next set of data (e.g., the street address). You can repeat the Alt + Enter process as many times as necessary to create third, fourth, or fifth lines.
- Finalize the Entry: Once you have finished all your lines of text, press the Enter key (without holding Alt) to complete the entry and move to the next cell.
Common Mistakes
One of the most frequent mistakes users make is simply pressing the Enter key. In Excel, pressing Enter is the command to finish editing the current cell and move the selection down to the cell below. If you do this, your text will remain on one line, and you will find yourself editing the wrong cell. Always remember that the Alt key is the "modifier" that tells Excel to stay inside the current cell while moving the cursor down.
Another common error is confusing "Wrap Text" with manual line breaks. Wrap Text is an automatic feature that forces text to jump to a new line based on the width of the column. If you resize the column, the text will shift again. Manual line breaks (Alt + Enter) are permanent; the text will always break at that exact point regardless of how wide or narrow the column is. Using Wrap Text when you actually need a specific list format often leads to messy formatting when the spreadsheet is shared with others who have different screen resolutions or column widths.
Users also occasionally try to use the Space bar to push text to a second line. This is highly inefficient and creates "ghost" data in the cell. If you later try to use a formula to search for specific text in that cell, the excessive spaces can cause the formula to fail or return incorrect results.
Tips
To maintain a professional look, combine manual line breaks with Top Alignment. By default, Excel aligns text to the bottom of the cell. When you have multiple lines, the text may look like it is floating or cut off if the row height is manually adjusted. Go to the Home tab, look at the Alignment group, and select the Top Align icon. This ensures your text starts at the top of the cell, making it much easier to read.
If you have a large dataset where you need to add a line break to hundreds of cells at once, doing it manually with Alt + Enter is too slow. Instead, you can use a formula. The function CHAR(10) represents a line break in Windows. For example, if you want to combine a first name in cell A1 and a last name in cell B1 with a line break between them, use the formula: =A1 & CHAR(10) & B1. After entering this formula, you must enable "Wrap Text" on that cell for the line break to actually appear; otherwise, Excel will display the text on one line with a strange symbol or space where the break should be.
For those working with very long lists within a cell, consider using a consistent delimiter before the line break, such as a bullet point. Since Excel doesn't have a built-in bullet list feature for cells, you can press Alt + 7 (on the numeric keypad) to insert a bullet point, then type your text, and then use Alt + Enter to move to the next bulleted item.
Troubleshooting
The text is still on one line even after pressing Alt + Enter: This usually happens because "Wrap Text" is turned off. While Alt + Enter usually triggers Wrap Text automatically, some cell formatting styles can override this. Select the cell, go to the Home tab, and click the Wrap Text button in the Alignment section. The text should immediately snap into the multi-line format you created.
The second line is hidden or the cell looks cut off: This occurs when the row height is set to a "Fixed" value rather than "AutoFit." To fix this, hover your mouse over the boundary line between the row numbers on the far left of the screen. When the cursor turns into a double-sided arrow, double-click. This will trigger AutoFit, and Excel will automatically expand the row to show all lines of text.
Alt + Enter is not working on my laptop: Some laptops have a "Fn" (Function) key that changes how other keys behave. If your Enter key is shared with another function, you might need to press Alt + Fn + Enter. Additionally, ensure that you are actually in "Edit Mode" (the cursor should be blinking inside the cell) before attempting the shortcut.
The formula CHAR(10) isn't working: Ensure you are using the correct character code for your operating system. While CHAR(10) is standard for Windows, Mac users may occasionally need to use CHAR(13) depending on the version of Excel and the system's line-ending settings. Again, ensure Wrap Text is enabled, as the formula alone will not change the visual layout of the cell.
Frequently Asked Questions
Can I use a mouse to enter a second line?
No, there is no specific button in the Excel ribbon to insert a manual line break. You must use the keyboard shortcuts (Alt + Enter) or a formula using CHAR(10).
Does adding a second line change the cell value?
Yes, it adds a non-printing character (a carriage return) to the text. If you are using this cell in a VLOOKUP or MATCH formula, ensure the other data source also has the same line breaks, or the formula may not find a match.
How do I remove all second lines from a column?
The fastest way is to use the Find and Replace tool. Press Ctrl + H. In the "Find what" box, click and press Ctrl + J (this is the shortcut for a line break in the find box). Leave the "Replace with" box empty or put a space, then click Replace All.
Will this work in Excel Online (Web version)?
Yes, Alt + Enter works in the web-based version of Excel, though browser shortcuts can sometimes interfere. If it fails, ensure the browser window is active and you are clicking directly into the cell.
Is there a limit to how many lines I can have in one cell?
Excel allows up to 32,767 characters in a cell. While there isn't a specific "line limit," the row height limit is 409 points. If you have too many lines, the text will be cut off because the row cannot physically grow any taller.