Carriage Return By Replace() function

F

FARAZ QURESHI

I have a data like:
A1: ABCDEFG, HIJK, LMNOPQRSTUV, WXYZ
A2: ABC, DEFG, HIJK, LMNOPQRSTUV, WXYZ
A3: ABCDEFGHIJK, LMNOPQRSTUV, WXYZ

Shall appreciate a formula using Replace and Char(10) function in cells B1,
B2, B3 or ANY other way so as to present the data as:

B1: ABCDEFG,
HIJK,
LMNOPQRSTUV,
WXYZ
B2: ABC,
DEFG,
HIJK,
LMNOPQRSTUV,
WXYZ
B3: ABCDEFGHIJK,
LMNOPQRSTUV,
WXYZ
 
T

T. Valko

Try this:

=SUBSTITUTE(A1," ",CHAR(10))

You'll have to "clean it up" a little by:

Formatting the cells to wrap text: Format>Cells>Alignment tab>Wrap text>OK
Adjust the column width
Adjust the row height
 
M

MartinW

Hi Faraz,

Just do an Edit>Replace in place
Replace What: space
Replace With: Alt+0010
Click replace All

HTH
Martin
 
D

Dave Peterson

You could also use ctrl-j instead of the alt-0010 (from the numeric keypad).

(Easier to do and easier to explain <bg>)
 
M

MartinW

See that 99, the old Ctrl+J trick, that's the third time I've missed it this
year!

<g>
Martin
 
F

FARAZ QURESHI

XCLent!!
Any other further usable combinations of ctrl+... ?

MartinW said:
See that 99, the old Ctrl+J trick, that's the third time I've missed it this
year!

<g>
Martin
 

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