Using LINE BREAK with CONCATENATE.

S.H.A.D.O.

Well-known Member
Joined
Sep 6, 2005
Messages
1,915
Good afternoon,

Can anyone please tell me why the following formula will not put a line break at the end of the first two statements please (like ALT-ENTER when in a single cell)?

Code:
=CONCATENATE("Title ",
TEXT(INDEX($B$18:$B$2517,MATCH(E$10,E$18:E$2517,0)),"#,###,##0"),CHAR(10),
LEFT(INDEX($C$18:$C$2517,MATCH(E$10,E$18:E$2517,0)),3),CHAR(10),
TEXT(INDEX($D$18:$D$2517,MATCH(E$10,E$18:E$2517,0)),"dd mmm yyyy"))

Thanks in advance.
 
Last edited:

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
S.H.A.D.O., Good afternoon.

I believe that your formula is OK!

"...(like ALT-ENTER when in a single cell)?..."
When we do this, EXCEL inserts a CHAR(10) as you said, BUT at same time format cell to WRAP TEXT.

Note: make sure you have text wrap enabled on cells that contain line breaks.

I hope it helps.
 
Last edited:
Upvote 0
Thanks for the reply, it is appreciated.
I forgot the WRAP TEXT, all working good now.

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,223,669
Messages
6,173,693
Members
452,527
Latest member
ineedexcelhelptoday

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