ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Joining text (https://www.excelbanter.com/excel-programming/315245-joining-text.html)

sungen99[_19_]

Joining text
 

I have the following info:

A1-Hello
A2-this
A3-is
A4-a
A5-test

if I wanted to have B1= "Hello this is a test" how do I connect them?

Thank

--
sungen9
-----------------------------------------------------------------------
sungen99's Profile: http://www.excelforum.com/member.php...nfo&userid=914
View this thread: http://www.excelforum.com/showthread.php?threadid=27369


Frank Kabel

Joining text
 
Hi
=A1 & " " & A2 & " " & A3 & " " & A4 & " " & A5

--
Regards
Frank Kabel
Frankfurt, Germany


sungen99 wrote:
I have the following info:

A1-Hello
A2-this
A3-is
A4-a
A5-test

if I wanted to have B1= "Hello this is a test" how do I connect

them?

Thanks



Sworkhard

Joining text
 
In this example, in vba you would go either

Range("B1").Value = Range("A1").Value & " " & Range("A2").Value & ... and
so on.

The other way is directly in the formula bar
=A1&" "&A2&" "&A3&" "&A4&" "&A5

"sungen99" wrote:


I have the following info:

A1-Hello
A2-this
A3-is
A4-a
A5-test

if I wanted to have B1= "Hello this is a test" how do I connect them?

Thanks


--
sungen99
------------------------------------------------------------------------
sungen99's Profile: http://www.excelforum.com/member.php...fo&userid=9144
View this thread: http://www.excelforum.com/showthread...hreadid=273692




All times are GMT +1. The time now is 10:35 AM.

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