Force line break in label that is concatenated

General Ledger

Active Member
Joined
Dec 31, 2007
Messages
460
Dear All,

I have a cell where I am stringing text together and want to force a line break/carriage return in the label. I know that if I was purely entering text, I can hit ALT+Enter within the text to force a line break. How do I accomplish this when the text is created using concatenation (strung together using &)?

I am concatenating text plus a cell reference. This formula gets me the correct wording in cell A2: = "Total" & A1

I want to force a line break between the word Total and the value from cell A1. I thought the solution was inserting the ASCII code for a carriage return. Something like this in cell A2: = "Total" & Char(13) & A1

This seems to place a | within the label and is not what I was hoping for.

Yes, the cell is formatted with Wrap Text checked on.

I am using Excel 2003.

Best regards,

General Ledger
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
That is it!!! I was using the wrong code.

I used Char(13) which is carriage return
I should use Char(10) which is line feed/new line

Thanks so much for the very speedy help,

GL
 
Upvote 0

Forum statistics

Threads
1,215,040
Messages
6,122,806
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top