To add a line break (an “enter”) inside a single Excel cell, press Alt+Enter on Windows or Control+Option+Return on a Mac. This lets you start a new line of text within the same cell, instead of moving to the next cell. You can also use the CHAR(10) function to insert line breaks in formulas or when combining text.
What You’ll Need
- Microsoft Excel (any version, including Excel for Microsoft 365, Excel 2021, 2019, 2016, or older).
- A worksheet with a cell containing text, or a blank cell where you want to type multiple lines.
- For Mac users: a keyboard with the Option key.
Step-by-Step
Method 1: Using the Keyboard Shortcut (Quickest)
- Double-click the cell where you want to add a line break. This puts the cell in edit mode. Alternatively, select the cell and press F2.
- Place your cursor where you want the line break to appear. For example, if you have “Street Address” in the cell and want “City” on the next line, click right after “Address”.
- Press Alt+Enter on Windows (or Control+Option+Return on Mac). A new line will start within the same cell.
- Type the text for the new line. Repeat step 3 for each additional line.
- Press Enter (or click another cell) to finish editing. The cell will now show multiple lines.
Method 2: Using Wrap Text (for Display Only)
If you want the text to wrap automatically to multiple lines (without manual breaks), you can enable Wrap Text. This does not insert a permanent line break; it only changes how the text is displayed.
- Select the cell or range of cells.
- Go to the Home tab on the ribbon.
- In the Alignment group, click the Wrap Text button. The text will now wrap to fit the column width.
- Adjust the row height if needed by dragging the row boundary or using Home > Format > AutoFit Row Height.
Method 3: Using the CHAR(10) Function (for Formulas)
When you want to combine text from different cells with a line break, use the CHAR(10) function, which represents a line feed character in Excel.
- Assume you have a first name in cell A1 and a last name in cell B1.
- In cell C1, type the formula:
=A1 & CHAR(10) & B1 - Press Enter. The result will show the first name and last name on separate lines, but only if Wrap Text is enabled for cell C1. If not, the line break will be hidden (you’ll see a small square).
- To make it display correctly, select cell C1, go to Home > Wrap Text.
Common Mistakes
- Pressing Enter alone: This moves the selection to the next cell down, not adding a line break. Always use Alt+Enter (or Control+Option+Return on Mac).
- Forgetting to enable Wrap Text: If you use CHAR(10) in a formula, the line break will not be visible unless Wrap Text is turned on for that cell.
- Using CHAR(13) instead of CHAR(10): CHAR(13) is a carriage return, which may not work as a line break in Excel. Use CHAR(10) for line feed.
- Typing spaces before the line break: Extra spaces can cause misalignment. Use the shortcut directly without adding spaces.
Tips
- Edit mode is key: You must be in edit mode (double-click or F2) before pressing Alt+Enter. If you press Alt+Enter while the cell is selected but not in edit mode, it will do nothing.
- Use for address formatting: Line breaks are perfect for addresses, lists, or any text that needs structure within a single cell.
- Increase row height automatically: After adding line breaks, Excel usually auto-fits the row height if the row height is set to auto (default). If not, manually set it.
- Copy and paste preserves breaks: If you copy a cell with line breaks and paste it into another cell, the breaks are preserved.
- Find and replace with line breaks: You can use Find & Replace (Ctrl+H) to add line breaks. In the “Replace with” field, press Ctrl+J (Windows) or Command+J (Mac) to insert a line break character.
Troubleshooting
- Alt+Enter does nothing: Make sure you are in edit mode (double-click the cell). Also, check if your keyboard has a Fn key; on some laptops, you may need to press Fn+Alt+Enter.
- Line break appears as a small square or box: This happens when Wrap Text is off. Select the cell and enable Wrap Text.
- Row height does not adjust automatically: If the row height is set to a fixed value, Excel won’t auto-fit. Select the row, right-click, choose Row Height, and click OK to reset to auto, or manually increase the height.
- CHAR(10) not working in a formula: Check that the cell has Wrap Text enabled. Also, ensure you are using a comma as the argument separator (for Excel, it’s always a comma, not a semicolon).
- Mac shortcut not working: On a Mac, the shortcut is Control+Option+Return. If it still doesn’t work, try pressing Option+Return (some versions accept this).
Frequently Asked Questions
Can I add a line break in a cell without using the keyboard?
Yes. You can use the CHAR(10) function in a formula, or use Find & Replace (Ctrl+H) and enter a line break in the replace field by pressing Ctrl+J. You can also copy a line break from another cell and paste it.
Why does my line break disappear when I save the file?
Line breaks are stored in the cell, but they may not display if Wrap Text is off. When you reopen the file, the break is still there; just enable Wrap Text to see it again.
How do I remove a line break from a cell?
Double-click the cell, place the cursor at the start of the line you want to remove, and press Backspace to delete the line break. Or use Find & Replace: in “Find what”, press Ctrl+J, leave “Replace with” empty, and replace all.
Can I use line breaks in a header or footer?
No, line breaks are not supported in headers/footers. You can, however, use multiple lines by inserting a manual line break in the header/footer text box using Alt+Enter.
Does the line break affect formulas that reference the cell?
No, the line break is just a character (CHAR(10)) within the text. Formulas that reference the cell will see the entire text including the line break. If you use functions like LEFT or RIGHT, the line break counts as one character.
Can I add a line break in a cell on Excel for the web?
Yes. In Excel for the web, the shortcut is Alt+Enter on Windows, and Control+Option+Enter on Mac. The CHAR(10) function also works, but you must enable Wrap Text in the Home tab.
Related
- How to Add Default Border in Excel
- Data Entry On-the-Job Training: What to Expect
- ALT+H+O in Google Sheets: What It Does
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- How to Autofit Rows in Excel With a Keyboard ShortcutIn Excel for Microsoft 365 on Windows, select the row or cells you want to adjust, then press…
- Circular References in Excel: Show and Find ThemTo show a circular reference in Excel for Microsoft 365 on Windows, select Formulas > Error Checking >…
- How to Insert a Row in Excel Without a Mouse: ShortcutsTo insert a row in Excel without a mouse, move to a cell in the row that should…
- How to Add a Shared Mailbox to Outlook on Your PhoneTo add a shared mailbox in Outlook on an iPhone or Android phone, open Outlook, tap your profile…
- Y Balance Test: How to Perform and Calculate ScoresTo calculate a lower-quarter Y Balance Test composite score, add the best valid reach distance in each of…
- Protect Sheet vs. Protect Workbook in Excel: Key DifferencesIn Excel, Protect Sheet limits what people can change on one worksheet, while Protect Workbook (in the Review…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.