In Excel: while editing a cell, press Alt+Enter (Ctrl+Option+Enter or Cmd+Option+Enter on Mac) to drop a hard line break at the cursor; in a formula, join text with CHAR(10) — like =A1&CHAR(10)&B1 — and turn on Wrap Text so the break shows.
Double-click the cell (or press F2) to enter edit mode and place the cursor where the break should go.
Press Alt+Enter on Windows, or Ctrl+Option+Enter / Cmd+Option+Enter on Mac, to insert a hard line break.
To break by formula, write =A1&CHAR(10)&B1, joining each part with &CHAR(10)&.
Select the cell and turn on Home ▸ Wrap Text so the line break is actually displayed.
What this does
A line break is a manual hard return placed at a chosen point inside one cell, unlike Wrap Text which auto-flows long text to the column width. You type the first part, press Alt+Enter, and the cursor moves to a fresh line within the same cell while the value stays a single cell. In a formula you build the break with CHAR(10), the line-feed character — for example =A1&CHAR(10)&B1 stacks the contents of A1 and B1 on two lines. Either way you must enable Home ▸ Wrap Text on the cell, otherwise the break is stored but rendered as a single run. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. Treat “write two lines in one cell excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected cells shows up while it is still harmless. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That turns a layout choice that keeps the sheet readable and sortable into a method you can reuse, explain, and defend when the workbook leaves your screen.
A worked example
Double-click a cell, place the cursor between two words, and press Alt+Enter — the text after the cursor drops to a new line within the same cell. To do it by formula instead, enter =A1&CHAR(10)&B1 where A1 is "London" and B1 is "NW1 6XE"; with Wrap Text on, the cell shows "London" on the first line and "NW1 6XE" on the second. A line break lets you stack an address, a label and a code, or any multi-part entry tidily inside one cell — keeping the data in a single cell while reading like several lines. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.
In Google Sheets
Everything above works in Google Sheets too. Excel and Sheets share the formula syntax used here; only the surrounding menus are arranged differently. That portability is deliberate — learn it once and it follows you between the two tools and across Windows and Mac. Keep this page bookmarked for the next time the same question comes up. Better still, rebuild the example once in your own sheet — doing it yourself, with the tool above to check against, is what turns a copied formula into a technique you own. Here is the takeaway for “write two lines in one cell excel”: copy the answer if you are busy, but if you have a spare few minutes, rebuild the example in Excel yourself with the tool above open beside it. That single pass — type it, run it, watch the result move when you change an input — is what turns a formula you found into a technique you trust. Keep your inputs labelled and referenced, never hard-coded, and the same sheet stays correct and auditable as it grows. Done that way, you will not need to look this up again, and you will be the person others ask.
Common mistakes
- Inserting CHAR(10) but leaving Wrap Text off, so the break is stored yet shown as one continuous line.
- Pressing plain Enter, which leaves the cell and moves down instead of breaking inside it.
- Expecting the row to grow on its own — reapply Home ▸ Format ▸ AutoFit Row Height if it stays clipped.
- Confusing a manual break with Wrap Text auto-wrap; the break sits at your chosen point, wrapping flows to the column edge.
Frequently asked questions
What is the shortcut for a line break in a cell?
Alt+Enter on Windows, and Ctrl+Option+Enter or Cmd+Option+Enter on Mac, while you are editing the cell.
How do I add a line break in a formula?
Join your text with CHAR(10), the line-feed character — for example =A1&CHAR(10)&B1 — then turn on Wrap Text so the break appears.
Does this work in Google Sheets?
Yes. Press Alt+Enter (or Ctrl+Enter) to break manually, and use CHAR(10) in formulas exactly the same way.