Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

New Line Character Excel: How to Add Line Breaks

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To insert a new line character in an Excel cell, use the keyboard shortcut Alt + Enter (Windows) or Option + Command + Return (Mac) while typing inside the cell. This forces the text to wrap to a new line within the same cell rather than moving to the next cell in the spreadsheet. This technique is essential for creating readable lists, adding addresses, or organizing detailed notes without expanding the column width to an impractical size.

What You'll Need

  • A computer with Microsoft Excel installed (Windows or macOS).
  • A keyboard with the Alt (or Option) and Enter (or Return) keys.
  • An active Excel workbook with data or empty cells ready for formatting.

Step-by-Step

  1. Select the Target Cell: Click on the cell where you want to add the line break. If you are editing an existing cell, double-click the cell or select it and press F2 to enter edit mode.
  2. Position the Cursor: Click inside the cell at the exact point where you want the text to break. The blinking cursor should be placed immediately before the word or character that you want to move to the next line.
  3. Execute the Shortcut:
    • On Windows: Press and hold the Alt key, then press Enter.
    • On Mac: Press and hold Option and Command, then press Return.
  4. Continue Typing: Once the cursor jumps to the new line, continue typing your text. You can repeat this process multiple times to create several paragraphs or a vertical list within a single cell.
  5. Finalize the Entry: Press the Enter key (without holding Alt or Option) to exit the cell and save the changes.
  6. Verify Wrap Text Setting: If the text does not appear on multiple lines after you exit the cell, look at the Home tab in the ribbon. In the Alignment group, ensure that the Wrap Text button is highlighted. Excel usually enables this automatically when you use Alt+Enter, but it is worth verifying if the formatting looks incorrect.
  7. Adjust Row Height: If the text is cut off, hover your mouse over the boundary line below the row number on the far left of the screen. Click and drag the boundary down to increase the row height, or double-click the boundary to automatically fit the row to the content.

Common Mistakes

One of the most frequent errors users make is pressing only the Enter key. In Excel, pressing Enter by default signals the end of the data entry for that cell and moves the selection to the cell below. This often leads to users accidentally splitting their data across multiple rows instead of keeping it within one cell.

Another common mistake is forgetting to enable Wrap Text. While the Alt+Enter shortcut typically triggers this setting, manually editing cells or importing data from other sources can sometimes disable it. When Wrap Text is off, Excel may display the text in one long continuous string, even if the hidden new line characters are present in the cell's data. This creates confusion where the user believes the shortcut failed, when in reality, it is simply a display setting issue.

Users also frequently struggle with the cursor position. If you click the cell once and press Alt+Enter without entering "Edit Mode" (by double-clicking or using the formula bar), the command may not register correctly depending on the version of Excel. Always ensure the cursor is blinking inside the cell text before attempting the shortcut.

Finally, some users attempt to use the spacebar to "push" text to the next line. This is highly inefficient and creates inconsistent formatting. Because Excel uses proportional fonts (where an 'i' is narrower than a 'w'), a series of spaces that looks like a new line in one column will likely look broken or misaligned if the column width is changed by even a single pixel.

Tips

For those working with massive datasets, manually inserting line breaks is tedious. You can use a formula to insert new line characters automatically based on a delimiter. The function for a new line character is CHAR(10) on Windows and CHAR(13) on Mac. For example, if you have a first name in cell A1 and a last name in B1 and want them on separate lines in C1, you can use the formula: =A1 & CHAR(10) & B1. After entering this formula, you must click Wrap Text for the line break to become visible.

To maintain a professional look, use the Vertical Alignment settings. When a cell has multiple lines, the text often defaults to the bottom of the cell. Go to the Home tab > Alignment group and select Top Align or Middle Align to ensure the text is positioned aesthetically within the enlarged row height.

If you need to remove these new line characters across a whole sheet, use the Find and Replace tool. Press Ctrl + H. In the "Find what" box, click and press Ctrl + J. This is the shortcut for the line break character in the Find dialog (you won't see a character appear, but you will see a tiny blinking dot). Leave the "Replace with" box empty or put a space, then click Replace All.

Troubleshooting

If the Alt+Enter shortcut is not working, first check if you are in a protected sheet. If the worksheet is protected, you cannot edit cells unless the specific cell was unlocked before the protection was applied. Go to the Review tab and check if it says Unprotect Sheet; if it does, the sheet is locked.

If the text still appears as one long line after using the shortcut, double-check the Wrap Text toggle in the Home ribbon. If Wrap Text is on and the text is still hidden, check the row height. Sometimes a row is set to a "Fixed Height," which prevents it from expanding to show the second or third line of text. To fix this, select the row, go to the Home tab > Format > AutoFit Row Height.

On Mac computers, keyboard shortcuts can sometimes conflict with system-level shortcuts. If Option+Command+Return does not work, try using the formula bar at the top of the screen. Click into the formula bar, position your cursor, and try the shortcut there. If it works in the formula bar but not in the cell, it is likely a software conflict or a specific keyboard mapping issue in your macOS System Settings.

In some web-based versions of Excel (Excel for the Web), keyboard shortcuts can vary slightly or be intercepted by the browser. If the standard shortcuts fail, ensure your browser is updated and that you are clicking directly into the cell to activate the cursor before attempting the command.

Frequently Asked Questions

Can I add a new line using a formula?

Yes, you can use the & operator combined with the CHAR(10) function (Windows) or CHAR(13) (Mac). Ensure Wrap Text is enabled for the result to display correctly.

Does Alt+Enter work in Google Sheets?

Yes, the shortcut is very similar. In Google Sheets, you use Ctrl + Enter or Alt + Enter to create a new line within a cell.

How do I remove all line breaks from my Excel sheet at once?

Use the Find and Replace feature (Ctrl + H), type Ctrl + J into the "Find what" field, and leave the "Replace with" field blank to delete all line breaks.

Why does my row height not change automatically when I add a new line?

This happens if the row height was manually adjusted previously. You can fix this by selecting the row and choosing AutoFit Row Height from the Format menu.

Will these line breaks show up if I export the file to a CSV?

Yes, but they are wrapped in double quotes in the raw CSV file. Most programs that import CSVs (like database software or other spreadsheet apps) will recognize these as valid line breaks within the field.

Is there a limit to how many lines I can have in one cell?

While there is no specific "line limit," there is a character limit for a cell (32,767 characters). Additionally, the maximum row height is 409 points; if your text exceeds this height, the remaining lines will be hidden regardless of Wrap Text settings.