ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Possible to add a Line break in a formula ? (https://www.excelbanter.com/excel-discussion-misc-queries/176527-possible-add-line-break-formula.html)

Ricardo the Numpty

Possible to add a Line break in a formula ?
 
I have 4 cells of postal address data which I want to combine and include
line breaks.

I know that to combine them in a continuous sequence I can use

=B4&", "&C4&", "&D4&", "&E4

But I want to insert a line break instead of a comma so that the result
appears as follows

B4
C4
D4
E4

instead of B4, C4, D4, E4 which the previous formula would give me.

Anyone any ideas?



Gary''s Student

Possible to add a Line break in a formula ?
 
=b4 & char(10) & c4 & char(10) & d4 & char(10) & e4

Then:
Format Cells... Alignment check wrap on
--
Gary''s Student - gsnu200768


"Ricardo the Numpty" wrote:

I have 4 cells of postal address data which I want to combine and include
line breaks.

I know that to combine them in a continuous sequence I can use

=B4&", "&C4&", "&D4&", "&E4

But I want to insert a line break instead of a comma so that the result
appears as follows

B4
C4
D4
E4

instead of B4, C4, D4, E4 which the previous formula would give me.

Anyone any ideas?



Ricardo the Numpty[_2_]

Possible to add a Line break in a formula ?
 
Have a big gold star :)

Many thanks.

"Gary''s Student" wrote:

=b4 & char(10) & c4 & char(10) & d4 & char(10) & e4

Then:
Format Cells... Alignment check wrap on
--
Gary''s Student - gsnu200768


"Ricardo the Numpty" wrote:

I have 4 cells of postal address data which I want to combine and include
line breaks.

I know that to combine them in a continuous sequence I can use

=B4&", "&C4&", "&D4&", "&E4

But I want to insert a line break instead of a comma so that the result
appears as follows

B4
C4
D4
E4

instead of B4, C4, D4, E4 which the previous formula would give me.

Anyone any ideas?




All times are GMT +1. The time now is 03:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com