Press Alt+Enter to move text to a new line within the same cell

To start a new line inside an Excel cell without moving to the next cell below, hold Alt and press Enter. This creates a line break within that single cell, so your text wraps to the next line while staying in the same box.

This works in both Windows and Mac versions of Excel, though the Mac shortcut is slightly different — you'll use Control+Command+Enter instead. The method is the same: you're telling Excel to break the line rather than confirm your entry and move down.

You can add as many line breaks as you need in one cell. Just position your cursor where you want the break, press the shortcut, and keep typing. Excel will automatically expand the row height to show all the text, or you can manually adjust it if you prefer.

Key Takeaways

  • Use Alt+Enter on Windows or Control+Command+Enter on Mac to create a line break inside a cell without moving to the next row.
  • Line breaks stay within the same cell and do not affect other cells or your spreadsheet structure.
  • Excel automatically makes the row taller to fit multiple lines, but you can adjust row height manually if needed.
  • You can add multiple line breaks in a single cell by repeating the shortcut wherever you want text to wrap.

When you might want to use line breaks in a cell

Line breaks are useful when you have a lot of text in one cell and want to keep it organized without splitting it across multiple cells. For example, you might use them in a notes column to separate different pieces of information, or in a header cell to stack words vertically without making the column wider.

They also help when you're creating a spreadsheet that will be printed or shared. Keeping related information in one cell makes the layout cleaner and easier to read. If you have a list of instructions or a multi-part note, line breaks let you format it clearly without creating extra columns.

How to see and edit line breaks you've already created

When you click on a cell that contains line breaks, you'll see the text displayed across multiple lines inside that cell. In the formula bar at the top of Excel (where you see the cell contents), the line breaks show up as small square symbols or just as breaks in the text.

To edit the text, double-click the cell to enter edit mode, then click where you want to make changes. You can delete a line break by positioning your cursor at the start of the line below it and pressing Backspace, which pulls that text back up to the previous line.

Adjusting row height to fit multiple lines

Excel usually makes rows taller automatically when you add line breaks, but sometimes you might want to control the height yourself. To manually adjust a row, position your cursor on the border between two row numbers on the left side of the spreadsheet until you see a resize arrow, then drag up or down.

If you want all rows to fit their content automatically, select the rows you want to adjust, then go to the Home tab, click Format, and choose AutoFit Row Height. This tells Excel to make each row just tall enough for the text inside.

The difference between line breaks and text wrapping

Line breaks (created with Alt+Enter) are manual — you decide exactly where the text moves to the next line. Text wrapping is automatic — Excel breaks lines wherever it needs to fit text within the column width.

To turn on text wrapping, select your cells, go to the Home tab, and click Wrap Text. The difference matters because line breaks give you control over where breaks happen, while wrapping adjusts automatically if you change the column width. You can use both together — add line breaks for control, and turn on wrapping so any remaining text also wraps if the column gets narrower.

Copying and pasting cells with line breaks

When you copy a cell that contains line breaks and paste it elsewhere, the line breaks come along with the text. This is helpful if you've formatted a cell the way you want and need to duplicate it in other rows or columns.

If you paste into a cell that's narrower than the original, the text might look different because the column width affects how wrapping appears — but the line breaks themselves stay in the same places. The line break characters are part of the cell content, so they travel with the text wherever you paste it.

Frequently Asked Questions

Why doesn't Alt+Enter work when I press it?

Make sure you're in edit mode first — double-click the cell or press F2 to start editing. If you press Alt+Enter without being inside the cell, Excel might interpret it as a command to do something else. Also check that you're holding Alt while pressing Enter, not pressing them separately.

Can I remove all line breaks from a cell at once?

You'll need to delete them manually by editing the cell and using Backspace to remove each one. There's no built-in command to strip all line breaks at once. If you have many cells with line breaks you want to remove, you can use Find & Replace with special characters, but that requires knowing how to search for line break codes.

Does a line break affect how Excel sorts or filters data?

No. Line breaks are just formatting within the cell content — they don't change how Excel reads or sorts the text. A cell with "apple\nbanana" (where \n represents the line break) sorts the same way as "applebanana" would.

What's the Mac keyboard shortcut again?

On Mac, use Control+Command+Enter to create a line break inside a cell. Some older Mac versions might use Control+Option+Enter instead, so try both if the first one doesn't work.