Blog
How to Add and Remove Line Breaks in Excel Cells
To add a line break inside an Excel cell, put the cursor where the new line should start and press Alt + Enter (on a Mac, Control + Option + Return). Pressing Enter on its own just finishes the entry and moves to the next cell. Removing line breaks matters just as often: a family contact form where parents typed their address over two lines will stop a contact import at the first bad row, and fixing a hundred rows one at a time eats a whole planning period.
Here's how to add line breaks by hand and by formula, remove them all at once, and split a multi-line cell into separate cells.
Three ways to add a line break in Excel
Alt + Enter
Microsoft's guide to starting a new line inside a cell gives the steps: double-click the cell (or select it and press F2), click where you want the break, and press Alt + Enter. On a Mac the keys are Control + Option + Return; Excel for the web uses Alt + Enter like Windows.

Excel turns on Wrap Text for that cell automatically and grows the row height to fit.
Wrap Text is a different thing
Home > Wrap Text only changes how a long value is displayed: it wraps the text to the column width. No line break character is added, so widen the column and the text goes back to one line. Alt + Enter puts a real line break character into the value, which is why it survives when the data is copied as text or exported.

👉 How to Wrap Text in Excel and Fix Rows That Won't Expand
CHAR(10) in a formula
You can't press Alt + Enter inside a formula result, so use CHAR(10), the line feed character Excel uses for line breaks on Windows.
- Two cells on two lines:
=A2&CHAR(10)&B2 - Several cells, one per line, skipping blanks:
=TEXTJOIN(CHAR(10),TRUE,A2:D2) - Commas turned into line breaks:
=SUBSTITUTE(A2,", ",CHAR(10))

If the result shows on one line, Wrap Text is off for that cell. Unlike Alt + Enter, a formula doesn't switch it on for you. TEXTJOIN needs Excel 2019 or later, or Microsoft 365.
Remove all line breaks at once
Find and Replace with Ctrl + J
Select the range, press Ctrl + H, click in Find what and press Ctrl + J. That types a line break into the box. You'll see nothing, or a tiny blinking dot, which is normal. Type a single space in Replace with and click Replace All.

Put a comma or a slash in Replace with and that character takes the place of each break. Reverse it, with a comma in Find what and Ctrl + J in Replace with, and every comma becomes a new line.
The hidden line break stays in the Find what box after you close the dialog. If your next search finds nothing, click in Find what and press Backspace a couple of times.
SUBSTITUTE and CLEAN
To keep the original and build a cleaned column next to it, use a formula. =SUBSTITUTE(A2,CHAR(10)," ") swaps breaks for spaces. =CLEAN(A2) strips nonprinting characters; Microsoft's CLEAN function reference says it removes the first 32 nonprinting characters of 7-bit ASCII, codes 0 to 31, which includes both line feed (10) and carriage return (13).
CLEAN removes the break without adding a space, so "1450 Maple Ave" and "Apt 2B" become "1450 Maple AveApt 2B". When words need a gap, use SUBSTITUTE, and tidy double spaces with TRIM: =TRIM(SUBSTITUTE(A2,CHAR(10)," ")).
Find the cells that contain line breaks
Before replacing anything, you may want to see which cells have breaks, especially if some, like report card comments, are meant to. Press Ctrl + F, put Ctrl + J in Find what and click Find All. The list shows each cell's address and value. Press Ctrl + A inside the list to select them all on the sheet, then give them a fill color.
For a filter, add a helper column with =ISNUMBER(FIND(CHAR(10),A2)), fill it down and filter for TRUE. =SUMPRODUCT(--ISNUMBER(FIND(CHAR(10),A2:A500))) counts them in one cell.
Split a cell by line break
To move each line into its own column, select the range, go to Data > Text to Columns, choose Delimited, tick Other, click in the box next to it and press Ctrl + J.
In Microsoft 365 and Excel 2024, =TEXTSPLIT(A2,CHAR(10)) spills each line into the next column, and =TEXTSPLIT(A2,,CHAR(10)) spills them down into rows. The original stays untouched, which makes the result easy to check.
Worked example: cleaning a family contact form before import
A fourth-grade teacher collects family contact details with an online form in August, downloads the responses to Excel, and saves them as a CSV to import into her class messaging app. This year there were 112 responses, and the import stopped at row 38. Parents had typed street and apartment on separate lines, so 17 address cells contained line breaks, and the CSV split each of those records in two.
She first counted them with the ISNUMBER/FIND helper column: 17 TRUE. She selected column F (Address), pressed Ctrl + H, entered Ctrl + J in Find what and a space in Replace with, and clicked Replace All. Recalculating the helper column showed zero TRUE.
Some addresses now had double spaces where parents had typed a space before pressing Enter, so she added =TRIM(F2) in a spare column, pasted the results back as values, and deleted the helper. The phone number column turned up three more breaks, fixed the same way. The Notes for the Teacher column, with pickup arrangements and allergies, kept its wording, but she replaced its breaks with " / " so each note still reads separately. All 112 families imported in one pass.
She adds line breaks on purpose elsewhere: the field trip roster's Emergency Contacts cell uses =TEXTJOIN(CHAR(10),TRUE,H2:K2) with Wrap Text on, so chaperones see one name and number per line on the printed list.
Common problems
Alt + Enter jumps to the next cell. The cell wasn't in edit mode. Double-click it or press F2 first.
The break is there but the text shows on one line. Wrap Text is off, or the row height is fixed. Turn on Wrap Text and double-click the row border to autofit.
A CSV export splits rows. Programs that don't handle quoted line breaks read one record as two. Remove breaks with Ctrl + J before saving a file for another system.
Lookups fail on values that look identical. Data from other systems often carries a trailing line break. Wrap both sides in CLEAN, or strip the breaks first, and VLOOKUP or XLOOKUP will match.
Some breaks survive Ctrl + J. The data also has carriage returns. Use =SUBSTITUTE(SUBSTITUTE(A2,CHAR(13),""),CHAR(10)," ") or CLEAN.
FAQ
Q. What is the Mac shortcut for a line break in a cell?
Control + Option + Return. In formulas, Mac Excel uses CHAR(10) just like Windows.
Q. Is there a limit to how many lines a cell can hold?
No line limit, but a cell holds up to 32,767 characters and a row can be at most 409 points tall, so very long text won't all be visible.
Q. Why do my words run together after removing line breaks?
CLEAN, or Ctrl + J replaced with nothing, deletes the break without leaving a gap. Replace with a space instead, or use SUBSTITUTE with " ".
Q. Why does TEXTJOIN return #VALUE!?
The joined result is longer than 32,767 characters. Join a smaller range.
Clean up form responses with inline AI
Adding or removing a line break takes seconds once you know the keys; cleaning every form export before it goes anywhere is what adds up. Ask inline AI to "put each address on one line and keep the breaks in the notes column," and it fixes only those columns in the open file on your PC, stray spaces included.
Gradebooks and spreadsheets, finished by inline AI in the file itself.
Ask in one sentence for roll-ups, trackers and the cleanup you repeat every week. Your files never leave your computer.




