Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dabblingandconfused
 
Posts: n/a
Default use concatenate function to put carrage returns in a text string

How do I use concatenate to assemble a string that includes carrage returns?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default use concatenate function to put carrage returns in a text string

Hi!

Try this:

To concatenate A1 and B1 with a "hard return" in-between:

=A1&CHAR(10)&B1

Format the cell to wrap text:

FormatCellsAlignmentWrap text

Biff

"dabblingandconfused" wrote
in message ...
How do I use concatenate to assemble a string that includes carrage
returns?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kishor
 
Posts: n/a
Default use concatenate function to put carrage returns in a text stri

hi,
Try this function.

Function AddText(CellsToAdd, TextSeperator)
y = CellsToAdd.Cells.Count
i = 1
For i = 1 To y
z = CellsToAdd(i)
k = k & TextSeperator & z
Next i
AddText = k
End Function
' =AddText(A1:E1," ") this example can add all text from range A1:E1 with
space as separator.


"Biff" wrote:

Hi!

Try this:

To concatenate A1 and B1 with a "hard return" in-between:

=A1&CHAR(10)&B1

Format the cell to wrap text:

FormatCellsAlignmentWrap text

Biff

"dabblingandconfused" wrote
in message ...
How do I use concatenate to assemble a string that includes carrage
returns?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default use concatenate function to put carrage returns in a text stri

Biff,
Do you know if there's a limit to the number of CHAR(10)s allowed in one
formual. I have one with four that's working fine, but when I addeed the
fifth, it refuses to work. Have tried moving the fifth column of data to the
left of the formula (with the other columns), all lower case, all upper case
and with and without spaces. Can you help? Thanks much,

Martha

"Biff" wrote:

Hi!

Try this:

To concatenate A1 and B1 with a "hard return" in-between:

=A1&CHAR(10)&B1

Format the cell to wrap text:

FormatCellsAlignmentWrap text

Biff

"dabblingandconfused" wrote
in message ...
How do I use concatenate to assemble a string that includes carrage
returns?




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 32
Default use concatenate function to put carrage returns in a text stri

Biff,

Do you know if there is a limit to the number of CHAR(10)s allowed in one
formula. I have a formula with four that is working fine, but when I added
the fifth, it refused to work. Have tried re-formatting the column; all
upper case, all lower case, with and without spaces after the commas, and so
far, no luck. Can you help?

=CONCATENATE(C2,CHAR(10),TEXT(D2, "d-mmm-yyyy"),CHAR(10),G2,CHAR(10),I2," -
",J2) WORKS FINE

=CONCATENATE(C2,CHAR(10),TEXT(D2, "d-mmm-yyyy"),CHAR(10),G2,CHAR(10),I2," -
",J2,CHAR(10),K2) DOESN'T WORK
"Biff" wrote:

Hi!

Try this:

To concatenate A1 and B1 with a "hard return" in-between:

=A1&CHAR(10)&B1

Format the cell to wrap text:

FormatCellsAlignmentWrap text

Biff

"dabblingandconfused" wrote
in message ...
How do I use concatenate to assemble a string that includes carrage
returns?




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
Trying to match a text string to a data table, any suggestions? OCONUS Excel Worksheet Functions 3 December 2nd 05 06:39 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
Finding Specific Text in a Text String Peter Gundrum Excel Worksheet Functions 9 April 10th 05 07:21 PM
Macro or Function to make text size to suite text Length? lbbss Excel Discussion (Misc queries) 4 December 14th 04 07:53 PM


All times are GMT +1. The time now is 12:10 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"