Remove Multiple line breaks and keep one

Sufiyan97

Well-known Member
Joined
Apr 12, 2019
Messages
1,585
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

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
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,223,910
Messages
6,175,320
Members
452,635
Latest member
laura12345

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