How do I insert a line feed in a formula?

G

Guest

I'm trying to insert a line feed (or carriage return) into a text formula I
have in a cell. I'm trying to concatenate text entered into two other cells
in this new cell and have the two entries on a different line within the same
cell. Anybody know how to do this?
 
G

Guest

First you need to turn on word wrap under format>cells>alignment, then use
CHAR(10), i.e.

="text"&CHAR(10)&"text2"


Regards,

Peo Sjoblom
 
G

Guest

Thanks Peo, thats exactly what I needed.

Peo Sjoblom said:
First you need to turn on word wrap under format>cells>alignment, then use
CHAR(10), i.e.

="text"&CHAR(10)&"text2"


Regards,

Peo Sjoblom
 
D

David McRitchie

Hi Don,
Unfortunately that does not apply to within a formula.

One nice feature of Alt+Enter is that is generates
the necessary wrap lines under Format, Cells, Alignment.

So the poster has to format the column accordingly,
when concatenating CHAR(10), which we assume he knew
because he thanked Peo for the solution.
 
B

bcraig505

If you wish to copy and paste the concatenated result into an email body and
not loose the line returns try this.

=CONCATENATE($A1,CHAR(13),$B1)

Good luck.
 

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