ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Concatenating Cells (https://www.excelbanter.com/excel-programming/444157-concatenating-cells.html)

sylink[_3_]

Concatenating Cells
 
Please I need to concatenate a series of cell. The pattern is shown
below. The first names are in col F and surnames in col A. I need both
names in Col F. Please I will appreciate suggested solutions in the
accompanying cell reference style.

Range("F" & z).Value = "John"

and
Range("A" & z).Value = "Smith"

Result:

Range("F" & z).Value = "John Smith"

Rick Rothstein

Concatenating Cells
 
Please I need to concatenate a series of cell. The pattern is shown
below. The first names are in col F and surnames in col A. I need both
names in Col F. Please I will appreciate suggested solutions in the
accompanying cell reference style.

Range("F" & z).Value = "John"

and

Range("A" & z).Value = "Smith"

Result:

Range("F" & z).Value = "John Smith"


Try it this way...

Range("F" & z).Value = Range("F" & z).Value & " " & Range("A" & z).Value

Rick Rothstein (MVP - Excel)

sylink[_3_]

Concatenating Cells
 
It worked. thank you Rick

Rick Rothstein wrote:
Please I need to concatenate a series of cell. The pattern is shown
below. The first names are in col F and surnames in col A. I need both
names in Col F. Please I will appreciate suggested solutions in the
accompanying cell reference style.

Range("F" & z).Value = "John"

and

Range("A" & z).Value = "Smith"

Result:

Range("F" & z).Value = "John Smith"


Try it this way...

Range("F" & z).Value = Range("F" & z).Value & " " & Range("A" & z).Value

Rick Rothstein (MVP - Excel)



All times are GMT +1. The time now is 03:32 AM.

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