ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I insert a line break using a formula (e.g when concatenat. (https://www.excelbanter.com/excel-worksheet-functions/153787-how-do-i-insert-line-break-using-formula-e-g-when-concatenat.html)

blustripes

How do I insert a line break using a formula (e.g when concatenat.
 
I'm concatenating values from multiple cells into a single cell and want to
put a line break in between them so as instead of getting e.g.
Mary,Tom, Ted
they appear as follows within a single cell:
Mary
Tom
Ted

I know I can do this manually using CTRL+carriage return but how can I do it
within my formula?

David Biddulph[_2_]

How do I insert a line break using a formula (e.g when concatenat.
 
=A1&CHAR(10)&A2&CHAR(10)&A3
Remember to format the cell to allow word wrap.

Are you sure you mean "CTRL+carriage return" and not Alt-Enter?
--
David Biddulph

"blustripes" wrote in message
...
I'm concatenating values from multiple cells into a single cell and want
to
put a line break in between them so as instead of getting e.g.
Mary,Tom, Ted
they appear as follows within a single cell:
Mary
Tom
Ted

I know I can do this manually using CTRL+carriage return but how can I do
it
within my formula?




PCLIVE

How do I insert a line break using a formula (e.g when concatenat.
 
Your cell will need to be formatted as Wrap text.

=A1 & CHAR(10) & B1

Regards,
Paul

--

"blustripes" wrote in message
...
I'm concatenating values from multiple cells into a single cell and want
to
put a line break in between them so as instead of getting e.g.
Mary,Tom, Ted
they appear as follows within a single cell:
Mary
Tom
Ted

I know I can do this manually using CTRL+carriage return but how can I do
it
within my formula?





All times are GMT +1. The time now is 04:17 AM.

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