ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I insert a line feed in a formula? (https://www.excelbanter.com/excel-worksheet-functions/8186-how-do-i-insert-line-feed-formula.html)

TX_KniveS

How do I insert a line feed in a formula?
 
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?

Don Guillett

try
alt+enter
where you want it to break

--
Don Guillett
SalesAid Software

"TX_KniveS" wrote in message
...
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?




Peo Sjoblom

First you need to turn on word wrap under formatcellsalignment, 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?


TX_KniveS

Thanks Peo, thats exactly what I needed.

"Peo Sjoblom" wrote:

First you need to turn on word wrap under formatcellsalignment, 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?


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.
---
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" wrote in message ...
try alt+enter where you want it to break

"TX_KniveS" 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?






bcraig505

How do I insert a line feed in a formula?
 
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?



All times are GMT +1. The time now is 12:15 AM.

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