Exporting Data with Line Break

S

satwinder

I have a data within 1 excel cell as (used ALT+Enter to input data)
Hi
Hello
How
Are
You

I am using concatenate funtion to merge this column with some other columns.
After concatination everything appears in 1 line like "Hi Hello How Are You"
I still want to bring output in multiple lines as above. Here is the
contatination funtion....

=CONCATENATE("COMMENT ON COLUMN ",+A1,".",+B1," IS """,
SUBSTITUTE(+C1,CHAR(10), " "),""";")

Any suggestions ?

Thanks
Satwinder
 
D

Dave Peterson

I'd drop the =concatenate() function and use the & operand:

=a1&char(10)&b1&char(10)&c1
(and on and on...)

Make sure that the cell is set for wrapping text--or you'll see little squares.
 

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