Line breaks (also called carriage returns or newlines) often sneak into Excel cells when you’re copying from Word, web pages, or using Alt+Enter to start a new line inside a cell.
These can mess up formulas, formatting, and data exports.
🧹 Method 1: Use Find and Replace (Quickest Way)
🔹 Steps:
- Select the range of cells (or entire sheet).
- Press Ctrl + H to open Find and Replace.
- In Find what, hold Ctrl and press J.
(This inserts a line break — you won’t see anything, but it’s there.) - In Replace with, type a space or nothing (if you want to delete the line break).
- Click Replace All.
✅ Done! All line breaks will be removed or replaced.
🧠 Tip:
Use a space in “Replace with” if you want to separate words, else words may merge.
Before:Amit\nSharma → Looks like:
Amit
Sharma
After (Replace with space):Amit Sharma
🧮 Method 2: Use a Formula
You can also remove line breaks using a formula with the SUBSTITUTE function.
🧪 Formula:
=SUBSTITUTE(A1, CHAR(10), " ")
CHAR(10)is the line break character (LF = Line Feed).- Replace
" "with""if you want to remove the break without adding space.
Then copy-paste as values if needed.
🔁 Method 3: Power Query (For Advanced Users)
If you’re working with imported datasets:
- Go to
Data→Get & Transform→From Table/Range - In Power Query Editor, select the column
- Use Transform → Replace Values
- Replace line break: enter Ctrl + J in “Value to Find”
- Replace with a space or empty string
- Click Close & Load
📌 Bonus: Removing Line Breaks in Google Sheets?
Use:
=SUBSTITUTE(A1, CHAR(10), " ")
Or:
=REGEXREPLACE(A1, "\n", " ")
Top rated products
-
Mastering Microsoft Excel: Excel from Beginner to Advanced (Downloadable)
Original price was: ₹2,299.00.₹1,999.00Current price is: ₹1,999.00. -
Dia Free Juice – Blood Sugar Management
-
Acer Aspire Lite (AL15-41) – AMD Ryzen 3 Laptop with 16GB RAM & 512GB SSD
-
MS Office Online Course: Basic to Advance Level
Original price was: ₹2,999.00.₹2,499.00Current price is: ₹2,499.00. -
The Psychology of Money: Timeless Lessons on Wealth, Greed, and Happiness
-
Mastering Excel Automation: Excel VBA Training Course for Proficiency and Efficiency
Original price was: ₹2,299.00.₹1,999.00Current price is: ₹1,999.00.






