How do I insert a line feed in a formula? in Excel Worksheet Functions  
 |  Edit my Profile  |  Help
 
     
  
 
 
 
TX_KniveS 12/21/2004 7:42 AM PST
  Question
  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?
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
Peo Sjoblom  12/21/2004 7:50 AM PST
  Answer
  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

"TX_KniveS" wrote:

> 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?
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
TX_KniveS 12/21/2004 7:55 AM PST
   
  Thanks Peo, thats exactly what I needed.

"Peo Sjoblom" wrote:

> 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
>
> "TX_KniveS" wrote:
>
> > 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?
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
Don Guillett 12/21/2004 7:51 AM PST
   
  try
alt+enter
where you want it to break

--
Don Guillett
SalesAid Software
donaldb@281.com
"TX_KniveS" <TXKniveS@discussions.microsoft.com> wrote in message
news:8C50B57A-2E2A-4FD2-BE30-0342D39ADBAB@microsoft.com...
> 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?


 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
David McRitchie 12/21/2004 10:54 AM PST
   
  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.
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Don Guillett" <donaldb@281.com> wrote in message ...
> try alt+enter where you want it to break
>
> "TX_KniveS" <TXKniveS@discussions.microsoft.com> wrote ...
> > I'm trying to insert a line feed (or carriage return) into a text formula I 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?
>
>


 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
 
 
bcraig505 10/30/2008 5:54 PM PST
   
  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.



"TX_KniveS" wrote:

> 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?
 
  Was this post helpful to you?  
 
 
  Reply | Print post   TopTop  
 
 
  Return to Microsoft Communities  Notify me of replies