The simplest way to break text onto a new line within a cell
To create a new line inside an Excel cell without moving to the next cell, press Alt + Enter on Windows or Control + Enter on Mac. The cursor will jump to the next line within that same cell, and your text will wrap to fit the cell's width.
This is different from pressing Enter alone, which moves you down to the next cell entirely. Alt + Enter (or Control + Enter) keeps you in the same cell and just moves the text down one line within it.
Key Takeaways
- Press Alt + Enter on Windows or Control + Enter on Mac to create a new line inside a cell without leaving that cell.
- The cell must have text wrapping turned on to display multiple lines; otherwise the text will be hidden even though it exists in the cell.
- You can add as many line breaks as you need within a single cell by pressing the keyboard shortcut multiple times.
- Line breaks within cells are useful for organizing information like addresses, lists, or multi-part notes in a single cell.
Making sure your wrapped text actually shows up
Creating a line break inside a cell is only half the work. If text wrapping is not turned on, Excel will store your line break but won't display it—the text will stay on one line and may overflow into the next cell or get cut off.
To turn on text wrapping, select the cell or cells you want to format. Go to the Home tab in the ribbon, find the Alignment group, and click Wrap Text. The cell will now expand vertically to show all your lines, and any line breaks you've added will become visible.
If you've already added line breaks but they're not showing, this is usually why. Select the cell, turn on wrapping, and the breaks will appear.
When to use line breaks instead of separate cells
Line breaks are most useful when you want related information grouped together in one cell. A common example is an address: you might put the street on one line, the city and state on the next, and the zip code on the third—all within a single cell. This keeps the address together as a unit rather than spreading it across three rows.
Another use is for notes or comments that belong to a single record. If you're tracking a project and want to list multiple action items for one task, a line break lets you keep them all in one cell instead of creating extra rows.
However, if you need to sort or filter your data by the content on different lines, separate cells are better. Excel sorts and filters by entire cell contents, not by individual lines within a cell.
Editing and removing line breaks
To edit text that contains line breaks, double-click the cell to enter edit mode. You'll see the cursor positioned in the text. Use the arrow keys to navigate to the line break you want to remove, then press Delete or Backspace to remove it. Press Enter when you're done editing.
If you want to remove all line breaks from a cell at once, you can use Find & Replace. Press Ctrl + H (Windows) or Command + H (Mac) to open Find & Replace. In the Find field, press Ctrl + J (Windows) or Command + J (Mac) to insert a line break character—it won't be visible, but it will be there. Leave the Replace field empty and click Replace All. This removes every line break in your selection.
Line breaks in formulas and imported data
If you're building a formula that needs to display text on multiple lines, you can use the CHAR(10) function, which represents a line break. For example, the formula =A1&CHAR(10)&B1 combines the contents of cells A1 and B1 with a line break between them. The cell must still have text wrapping turned on to display the result across multiple lines.
When you import data from other sources—like a CSV file or a database export—line breaks may already be embedded in the text. Excel will preserve them, but again, you'll need text wrapping on to see them. If imported data looks like it's cut off or missing content, check whether wrapping is enabled.
Keyboard shortcuts for different spreadsheet programs
The shortcut varies slightly depending on which program you're using. In Excel on Windows, it's Alt + Enter. On Mac, it's Control + Enter. In Google Sheets, the shortcut is Ctrl + Enter on Windows or Command + Enter on Mac—the same as Excel Mac, but Google Sheets works differently on Windows. In LibreOffice Calc, use Ctrl + Enter on both Windows and Mac.
If you switch between programs regularly, Alt + Enter (Windows) and Control + Enter (Mac) are the safest defaults to remember, since they work in Excel and most other spreadsheet tools.
Frequently Asked Questions
What's the difference between Alt + Enter and just pressing Enter?
Pressing Enter alone moves you down to the next cell. Alt + Enter (Windows) or Control + Enter (Mac) keeps you in the same cell and moves the text to the next line within it. You need Alt + Enter to create a line break inside a cell.
Why can't I see my line breaks even though I added them?
Text wrapping is probably turned off. Select the cell, go to the Home tab, find the Alignment group, and click Wrap Text. The cell will expand and your line breaks will become visible.
Can I copy a cell with line breaks to another cell?
Yes. Copy the cell normally with Ctrl + C (Windows) or Command + C (Mac), then paste it into the new cell. The line breaks will come along. The destination cell should also have text wrapping turned on to display them.
Will line breaks affect sorting or filtering?
No. Excel sorts and filters based on the entire cell contents as a single unit, not by individual lines. Line breaks are invisible to sorting and filtering functions.
Can I add a line break in the middle of a formula?
Not directly in the formula itself. But you can use CHAR(10) to create a line break in the output. For example, =A1&CHAR(10)&B1 combines two cells with a line break between them. The result cell must have text wrapping on.