Remove line breaks from cells

shre0047

Board Regular
Joined
Feb 3, 2017
Messages
53
Office Version
  1. 365
Platform
  1. Windows
I have a few columns (~75000 rows) where I've extracted data and included HTML tags. I've removed the tags, but now there are line breaks I'm hoping I can eliminate via VBA or formula.


Column I (Current)Column J (Final state)

,
, Navigate to the Instructions section in page
,
,
Navigate to the Instructions section in page

,
, Click on the drop down and select option
,
,
Click on the drop down and select option

,
, Spinning wheel appears and once loading is complete ensure user can see the products that were available in cart
, sorted by their associated ID
,
,
Spinning wheel appears and once loading is complete ensure user can see the products that were available in cart sorted by their associated ID

,
, Validate each order line
, number displays a PO
, Line number Text ID
,
,
Validate each order line number displays a PO Line number Text ID

,
, Enter number in the
, Number field. Update Created on
, date and press execute
,
,
Enter number in the Number field. Update Created on date and press execute
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
If you are sure of the Character for example, Assuming it is character 10

1. You could use FIND and REPLACE and in the find type ALT+0010(using the numeric keypad) and replace with nothing. That should rid you of the LF character
2.
Excel Formula:
SUBSTITUTE(A1, CHAR(10),""
 
Upvote 0
I did use this via a macro and formula, but it doesn't remove my line breaks and aligns to what I currently have in Column I
 
Upvote 0
Referencing a cell where you have a line break before your text what does
Excel Formula:
=CODE(A1)
give you?
You might also try ALT + 010 in the Find/Replace (make sure in the Options that you don't have "Match entire cell contents" checked).
 
Last edited:
Upvote 0
Really is line breaks? Maybe be vertical alignment.
Line breaks can be chr(10), chr(11) or chr(13).
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,030
Members
448,940
Latest member
mdusw

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