Why does your imported address list show ‘123 Main St\nApt 4B\nNew York, NY 10001’ crammed into A1? Why does pressing Enter inside a cell do nothing — but Alt+Enter works only sometimes? Why does Paste Special > Text break line breaks inconsistently across versions?
Quick Answer
You don’t actually split lines in Excel — you display them by enabling wrap text and inserting line breaks (Alt+Enter), or separate them into different cells using formulas like TEXTSPLIT (Excel 365), SUBSTITUTE + TRIM + FILTERXML (older versions), or Power Query. Confusing ‘line break display’ with ‘line break extraction’ is the #1 reason people waste hours.
All the Methods
| Method | Steps | Best For | Limitations |
|---|---|---|---|
| Alt+Enter + Wrap Text | Click cell → press F2 → place cursor where you want line break → Alt+Enter → Home tab → Wrap Text | Manually formatting addresses, notes, or labels inside a single cell | Does NOT split content across cells — just visual wrapping |
| TEXTSPLIT function | =TEXTSPLIT(A1,"\n") → spills results rightward (or downward with optional 3rd arg) | Modern Excel (365/2021) users extracting line breaks into adjacent columns | Not available in Excel 2019 or earlier; fails if line breaks are \r\n instead of \n |
| SUBSTITUTE + FILTERXML | =FILTERXML(" | Excel 2013–2019 users needing robust, formula-only splitting | FILTERXML doesn’t work on Mac Excel; requires exact CHAR(10) — not CHAR(13) |
| Power Query (Split Column) | Data tab → From Table/Range → Transform tab → Split Column → By Delimiter → choose ‘Line Break’ | Large datasets (10k+ rows), repeatable workflows, cleaning imported CSVs | Overkill for one-off edits; requires loading into Power Query editor |
| Find & Replace + Space Padding | Ctrl+H → Find what: CHAR(10) (enter via Alt+010) → Replace with: " | " → then use TEXTSPLIT or Data > Text to Columns | Older Excel versions when FILTERXML isn’t an option and you need quick column separation | Adds extra characters you must clean later; fragile if pipe exists in original data |
Method 1 Deep Dive: Alt+Enter + Wrap Text (How to Break Lines in Excel)
This is what most people mean when they ask how to break lines in excel. It’s not about splitting — it’s about making Excel show multiple lines inside one cell.
Here’s what really trips people up: Alt+Enter only works when the cell is in edit mode. You can’t just click a cell and hit Alt+Enter — you must first double-click it, or press F2, or select the cell and click inside the formula bar. Try it now in cell A1:
Sarah Chen Acme Corp 2024-03-15 $45,200
That’s four lines — but if you paste that raw text into A1 without editing, Excel treats the \n as plain text unless you’ve enabled Wrap Text *first*. So here’s the correct sequence:
- Select A1
- Press F2 (to enter edit mode)
- Place cursor after “Chen”, press Alt+Enter
- Repeat after “Corp”, after “2024-03-15”
- Go to Home → Wrap Text (or Ctrl+1 → Alignment tab → check “Wrap text”)
Now A1 shows four visible lines — but it’s still one cell, one value. That means SUM(), COUNTA(), and even VLOOKUP() treat it as a single string. Want proof? Type =LEN(A1) in B1. You’ll get 47 — counting every character, including those invisible line breaks (CHAR(10)).
Pro tip: If you copy-paste from Notepad or email, Excel often preserves line breaks automatically — but only if Wrap Text is already turned on *before* pasting. Try this test: Turn off Wrap Text, paste multi-line text into C1, then turn Wrap Text back on. Nothing changes — because Excel stored the line breaks, but won’t render them until you re-enter the cell or force recalc (F9). Trust me, I learned this the hard way during a client demo.
Method 2 Deep Dive: TEXTSPLIT for Real Line Splitting
Now let’s talk about actually splitting lines into separate cells — the true ‘how to split lines in excel’ solution. TEXTSPLIT is your best friend if you’re on Excel 365 or 2021.
Assume this data starts at A2:
| A2 |
|---|
| John Liu Global Logistics Inc. Seattle, WA 98101 john.liu@globallogi.com |
| Maria Garcia TechNova Labs Austin, TX 78701 maria.garcia@technovalabs.com |
| David Kim Nexus Financial Group Boston, MA 02108 david.kim@nexusfg.com |
| Priya Patel Veridian Systems Chicago, IL 60601 priya.patel@veridiansys.com |
| Robert Torres Stratos Analytics Denver, CO 80202 robert.torres@stratosanalytics.com |
Note: Those <br> tags above are just for HTML rendering — in Excel, these are actual line breaks (CHAR(10)). To verify, select A2 and press F2, then use arrow keys: you’ll see the cursor jump vertically between lines.
In B2, enter:
=TEXTSPLIT(A2,"\n")
It spills right into B2:E2 — Name, Company, Address, Email. Drag the formula down and it auto-adjusts for each row. No Ctrl+Shift+Enter. No helper columns.
But here’s the counterintuitive part: TEXTSPLIT uses "\n", not CHAR(10). And it only recognizes Unix-style line breaks (\n), not Windows-style (\r\n). So if your data came from Outlook or older Windows apps, you might get blank results. Fix it with:
=TEXTSPLIT(SUBSTITUTE(A2,CHAR(13),""),"\n")
That strips carriage returns first. Yes — Excel stores both, but only displays one. Sneaky, right?
If you want results stacked vertically instead of horizontally, add a third argument:
=TEXTSPLIT(A2,"\n",,TRUE)
The TRUE forces vertical spill — so B2:B5 fills with the four lines. Handy for building dynamic lists or feeding into XLOOKUP.
Cheat Sheet
| Task | Shortcut / Formula | Notes |
|---|---|---|
| Insert line break in cell | F2 → Alt+Enter | Must be in edit mode. Alt+010 on numeric keypad also works (if NumLock on). |
| Enable wrap text | Alt+H+W | Home tab → Wrap Text. Works on selection of any size. |
| Split lines into columns (365) | =TEXTSPLIT(A1,"\n") | Spills right. Add ,,TRUE for vertical spill. |
| Split lines in Excel 2019 | =FILTERXML(" | Change [1] to [2], [3], etc. for each line. Array-enter with Ctrl+Shift+Enter if not dynamic. |
| Clean \r\n before splitting | =SUBSTITUTE(A1,CHAR(13),"") | Always do this first if data came from email or Word. |
| See hidden line breaks | =CODE(MID(A1,5,1)) | Returns 10 for line feed, 13 for carriage return. Test positions manually. |
| Paste multi-line text cleanly | Turn on Wrap Text *before* pasting | If you forget, double-click cell and press F2 → Enter to refresh display. |