I tried char(10)
and char(13)
but they don`t work by me. I use Excel 2007 and my task is to replace new lines with intervals
What is the character code for new line break in excel
Asked Answered
Use CHAR(10) and Turn on Wrap Text option. It should work.
This is OS-dependent. CHAR(10) for Windows and CHAR(13) for Mac. –
Shrinkage
unfortunetely it doesn't. –
Excitant
CHAR(10) works if you enable word wrap for the cell –
Prenotion
@HendraAnggrian You can use
CHAR(10)&CHAR(13)
if you need to make sure it works on both –
Antinode Try using the [Alt] + [Enter] key. This will create a new line feed in the cell.
Supposing the A1 is the source cell, try =SUBSTITUTE(SUBSTITUTE((A1), CHAR(10), ""), CHAR(13), "")
© 2022 - 2024 — McMap. All rights reserved.
ALT+ENTER
. But you're asking for the character, so maybe that's not helpful...A note also, if you are usingCHAR(10)
(and probably other options), make sure Text wrapping is turned on for that cell. Otherwise you won't see the line break. – Sturgill=SUBSTITUTE(A1,CHAR(10)," ")
. WhereA1
is a cell with text, and line breaks? If not, can you please show us the data, what's it look like? – Sturgill