Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Exporting Data with Line Break

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Exporting Data with Line Break

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.

satwinder wrote:

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


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
line break does not appear in CSV BFON Excel Discussion (Misc queries) 3 April 29th 10 04:23 PM
Parse Before Line Break Josh O. Excel Worksheet Functions 3 December 31st 08 08:35 AM
Line break GARY Excel Discussion (Misc queries) 1 November 6th 07 12:00 AM
Break cell into multiple lines by line break Chia Excel Discussion (Misc queries) 1 August 20th 06 06:37 AM
Line Break Ramthebuffs Excel Discussion (Misc queries) 4 August 22nd 05 08:52 PM


All times are GMT +1. The time now is 04:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"