Remove Multiple line breaks and keep one

Sufiyan97

Well-known Member
Joined
Apr 12, 2019
Messages
1,614
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
I have data like below, how to remove multiple line breaks and just keep one line break.

Book9
ABC
1Mailing AddressMailing Address - Expected
2ROBERT WIMER 115 CORRY AVENUE LANCASTER, PA 17601ROBERT WIMER 115 CORRY AVENUE LANCASTER, PA 17601
3TIMOTHY GAY 1164 OAKMONT DRIVE LANCASTER, PA 17601TIMOTHY GAY 1164 OAKMONT DRIVE LANCASTER, PA 17601
4Amy Grubb 117 Doreen Drive Hummelstown, PA 17036Amy Grubb 117 Doreen Drive Hummelstown, PA 17036
5Steven Grubb 117 Doreen Drive Hummelstown, PA 17036Steven Grubb 117 Doreen Drive Hummelstown, PA 17036
6
Sheet1
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
How about
Excel Formula:
=TEXTJOIN(CHAR(10),,TRIM(TEXTSPLIT(A2,CHAR(10),,1)))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top