Line Break on a specific character

E

Ekser

Hi,

How can I insert a line break after a specific character (in this cas
after a comma ,)?
Let me stress that I don't have data in this cell for the moment, bu
it is used to be exported to Word, thus the cell value is unknown so
can't use the Data/Text to Columns option....


:confused:


Cheers
 
F

Frank Kabel

Hi
you could use the following in a helper column
=IF(ISNUMBER(FIND(",",A1)),LEFT(A1,FIND(",",A1)) & CHAR(10) &
MID(A1,FIND(",",A1)+1,1024),"")
and format this cell with word wrap ('Format -Cells - Alignment)

another option would be to try:
=SUBSTITUTE(A1,",",","&CHAR(10))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top