Carriage Returns in a Cell - what character?

lord_yo

New Member
Joined
Oct 18, 2006
Messages
39

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
you can find out the character # with the a combination of the Code and Mid functions.

Say you know the sentence contains a soft return at the 15th character, you would use

=CODE(MID(A1,15,1))

that will tell you the Character number for the soft return..

But I think it's 10
 
Upvote 0
I can't remember either, but if it's not 10 try 13 as well....Chr(13) is a line break in a message box (I think...or 10...one of them, lol)
 
Upvote 0
10 is Line Feed (which is what you want), 13 is carriage return. In VBA (if you are automating the replace), you can use vbLf
 
Upvote 0

Forum statistics

Threads
1,215,306
Messages
6,124,160
Members
449,146
Latest member
el_gazar

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