Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I want to concatenate two strings in a worksheet to be used in a text box in
a chart however I would like the two strings to appear on seperate lines in the text box. Is there a way to insert a carriage return between the two concatenated strings in the worksheet? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this in C1, with your strings in A1 and B1:
=A1&CHR(10)&B1 In C1 use Format | Cells | Alignment (tab) and check Wrap Text to see the effect. Hope this helps. Pete rtbrd wrote: I want to concatenate two strings in a worksheet to be used in a text box in a chart however I would like the two strings to appear on seperate lines in the text box. Is there a way to insert a carriage return between the two concatenated strings in the worksheet? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Pete' keyboard had a hiccup today; he meant to type CHAR(10)
best wishes Bernard_Canada www.stfx.ca/people/bliengme remove caps from email "rtbrd" wrote in message ... I want to concatenate two strings in a worksheet to be used in a text box in a chart however I would like the two strings to appear on seperate lines in the text box. Is there a way to insert a carriage return between the two concatenated strings in the worksheet? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Pete, thanks that worked but I had to use the CHAR function, CHR returned an
error. In the worksheet it still shows as one line but in the chart the two strings appear on seperate line, exactly what I wanted. Joe "Pete_UK" wrote: Try this in C1, with your strings in A1 and B1: =A1&CHR(10)&B1 In C1 use Format | Cells | Alignment (tab) and check Wrap Text to see the effect. Hope this helps. Pete rtbrd wrote: I want to concatenate two strings in a worksheet to be used in a text box in a chart however I would like the two strings to appear on seperate lines in the text box. Is there a way to insert a carriage return between the two concatenated strings in the worksheet? |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I bet Pete meant:
=A1&CHaR(10)&B1 Pete_UK wrote: Try this in C1, with your strings in A1 and B1: =A1&CHR(10)&B1 In C1 use Format | Cells | Alignment (tab) and check Wrap Text to see the effect. Hope this helps. Pete rtbrd wrote: I want to concatenate two strings in a worksheet to be used in a text box in a chart however I would like the two strings to appear on seperate lines in the text box. Is there a way to insert a carriage return between the two concatenated strings in the worksheet? -- Dave Peterson |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Select the cell(s)
format|cells|alignment tab|check Wrap Text And it'll look pretty in the cell, too. This char(10) is the same as alt-enter if you're entering plain old text. rtbrd wrote: Pete, thanks that worked but I had to use the CHAR function, CHR returned an error. In the worksheet it still shows as one line but in the chart the two strings appear on seperate line, exactly what I wanted. Joe "Pete_UK" wrote: Try this in C1, with your strings in A1 and B1: =A1&CHR(10)&B1 In C1 use Format | Cells | Alignment (tab) and check Wrap Text to see the effect. Hope this helps. Pete rtbrd wrote: I want to concatenate two strings in a worksheet to be used in a text box in a chart however I would like the two strings to appear on seperate lines in the text box. Is there a way to insert a carriage return between the two concatenated strings in the worksheet? -- Dave Peterson |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks Dave and Bernard for the correction - too much VBA at the moment
<bg Pete Bernard Liengme wrote: Pete' keyboard had a hiccup today; he meant to type CHAR(10) best wishes Bernard_Canada www.stfx.ca/people/bliengme remove caps from email "rtbrd" wrote in message ... I want to concatenate two strings in a worksheet to be used in a text box in a chart however I would like the two strings to appear on seperate lines in the text box. Is there a way to insert a carriage return between the two concatenated strings in the worksheet? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
List File Properties - Author | Excel Worksheet Functions | |||
How do I grab the date from a text string? | Excel Worksheet Functions | |||
Find & Replace text format | Excel Discussion (Misc queries) | |||
Text string and sum | Excel Worksheet Functions | |||
Formulas dealing with text data | Excel Worksheet Functions |