Possible to add a Line break in a formula ?

R

Ricardo the Numpty

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?
 
G

Gary''s Student

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

Then:
Format > Cells... > Alignment > check wrap on
 
R

Ricardo the Numpty

Have a big gold star :)

Many thanks.

Gary''s Student said:
=b4 & char(10) & c4 & char(10) & d4 & char(10) & e4

Then:
Format > Cells... > Alignment > check wrap on
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top