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: an order export where customers typed their address over two lines will stop a carrier's label upload at the first bad row, and fixing hundreds of rows one at a time eats the afternoon.
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 Commerce Dr" and "Suite 200" become "1450 Commerce DrSuite 200". 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 product descriptions, 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 an order export for the carrier
Brightway Retail's fulfillment coordinator downloads the day's marketplace orders at 3 p.m. and copies the shipping columns into the carrier's label template. On a Monday in October there were 412 orders, and the upload stopped at row 38. Customers had typed street and suite on separate lines, so 57 address cells contained line breaks.
She first counted them with the ISNUMBER/FIND helper column: 57 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 customers 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 Delivery Instructions column kept its wording, but she replaced its breaks with " / " so the driver still sees each instruction separately. All 412 labels uploaded in one pass.
The same team adds line breaks on purpose elsewhere: the pick ticket's Items cell uses =TEXTJOIN(CHAR(10),TRUE,H2:K2) with Wrap Text on, so warehouse staff see one item per line and miss fewer.
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.
How inline AI handles line breaks in order data
Adding or removing a line break takes seconds once you know the keys; the daily routine of cleaning every channel's export is what adds up. inline AI finds the line breaks and stray spaces in the open file, fixes only the columns that need it, and moves the data into the carrier template. With IDP bringing orders in directly from each sales channel, there's no export to clean in the first place.
Hand your documents and your company’s work to inline AI.
Keep a file open, say what you need, and AI edits it or drafts a new one. Add the company AI OS and AI runs the rest of the work, ERP included.
Book a demo



