ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   concantenatring 2 cells with with a line break (https://www.excelbanter.com/excel-discussion-misc-queries/32423-concantenatring-2-cells-line-break.html)

dick

concantenatring 2 cells with with a line break
 
I have info in 2 cells. I want to add the info from one cell into the other
cell but have the info from each cell show up on different lines within the
cell

CLR

In a third cell, put

=A1&" "&A2 and format that cell as "Wrap text"

Vaya con Dios,
Chuck, CABGx3



"dick" wrote in message
...
I have info in 2 cells. I want to add the info from one cell into the

other
cell but have the info from each cell show up on different lines within

the
cell




RagDyer

What Chuck really meant to say was:

=A1&CHAR(10)&A2

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"CLR" wrote in message
...
In a third cell, put

=A1&" "&A2 and format that cell as "Wrap text"

Vaya con Dios,
Chuck, CABGx3



"dick" wrote in message
...
I have info in 2 cells. I want to add the info from one cell into the

other
cell but have the info from each cell show up on different lines within

the
cell





CLR

Yeah, RD, I did prototype that one first, but the "space" worked just as
well on my XL2k so I decided to post it instead.

Vaya con Dios,
Chuck, CABGx3


"RagDyer" wrote in message
...
What Chuck really meant to say was:

=A1&CHAR(10)&A2

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"CLR" wrote in message
...
In a third cell, put

=A1&" "&A2 and format that cell as "Wrap text"

Vaya con Dios,
Chuck, CABGx3



"dick" wrote in message
...
I have info in 2 cells. I want to add the info from one cell into the

other
cell but have the info from each cell show up on different lines

within
the
cell







RagDyer

I doesn't work on my XL97, and you just made me run all the way to the front
office to check it on my XL2K, where it *also* doesn't work?!?!

Are you SURE?

--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"CLR" wrote in message
...
Yeah, RD, I did prototype that one first, but the "space" worked just as
well on my XL2k so I decided to post it instead.

Vaya con Dios,
Chuck, CABGx3


"RagDyer" wrote in message
...
What Chuck really meant to say was:

=A1&CHAR(10)&A2

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"CLR" wrote in message
...
In a third cell, put

=A1&" "&A2 and format that cell as "Wrap text"

Vaya con Dios,
Chuck, CABGx3



"dick" wrote in message
...
I have info in 2 cells. I want to add the info from one cell into

the
other
cell but have the info from each cell show up on different lines

within
the
cell







RagDyeR

Now I know what you did.

You had your column *just* wide enough, OR your data *just* long enough, so
that "line wrap" would kick in automatically, due to the natural break at
the space.

That's cheating, and shouldn't count.<bg
--

Regards,

RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
--------------------------------------------------------------------

"CLR" wrote in message
...
Yeah, RD, I did prototype that one first, but the "space" worked just as
well on my XL2k so I decided to post it instead.

Vaya con Dios,
Chuck, CABGx3


"RagDyer" wrote in message
...
What Chuck really meant to say was:

=A1&CHAR(10)&A2

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"CLR" wrote in message
...
In a third cell, put

=A1&" "&A2 and format that cell as "Wrap text"

Vaya con Dios,
Chuck, CABGx3



"dick" wrote in message
...
I have info in 2 cells. I want to add the info from one cell into the

other
cell but have the info from each cell show up on different lines

within
the
cell








CLR

"Stuff happens" <vbg........anyway, I do acknowledge the =A1&CHAR(10)&A2
way as being the better but I'm not sure why. Previously I did not take
into account that one or the other of the cells to be concatenated might
already have spaces between values therein, especially multiple
words...........still both methods are dependent upon column width and the
CHAR method will still break on spaces as well, but the CHAR method actually
works better when the column is wider than the longest string, and actually
forces the line-break where the "space" method continues to work to each
space in the concatenated string..........I guess in the long run, if you
have a wide column and WANT two lines exactly, then the CHAR method is
better........but the OP said "different lines" not just two lines, and in
some cases I personally find the appearance using the "space" method nicer,
(the devil made me say that).........anyway, now my cat is on my keyboard,
and he's telling me that it's time for my medication.........

Vaya con Dios,
Chuck, CABGx3




"RagDyeR" wrote in message
...
Now I know what you did.

You had your column *just* wide enough, OR your data *just* long enough,

so
that "line wrap" would kick in automatically, due to the natural break at
the space.

That's cheating, and shouldn't count.<bg
--

Regards,

RD
--------------------------------------------------------------------
Please keep all correspondence within the Group, so all may benefit !
--------------------------------------------------------------------

"CLR" wrote in message
...
Yeah, RD, I did prototype that one first, but the "space" worked just as
well on my XL2k so I decided to post it instead.

Vaya con Dios,
Chuck, CABGx3


"RagDyer" wrote in message
...
What Chuck really meant to say was:

=A1&CHAR(10)&A2

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"CLR" wrote in message
...
In a third cell, put

=A1&" "&A2 and format that cell as "Wrap text"

Vaya con Dios,
Chuck, CABGx3



"dick" wrote in message
...
I have info in 2 cells. I want to add the info from one cell into

the
other
cell but have the info from each cell show up on different lines

within
the
cell









Lanak Suri

concantenatring 2 cells with with a line break
 
=concatenate(text1,tex2,...) This formula joins several text strings to one
text string. Or simple try like =A1&" "&A2. And you can special past as value
only to any cell.

"dick" wrote:

I have info in 2 cells. I want to add the info from one cell into the other
cell but have the info from each cell show up on different lines within the
cell



All times are GMT +1. The time now is 04:52 PM.

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