ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Combine Cells without Concenate or & (https://www.excelbanter.com/excel-discussion-misc-queries/136550-combine-cells-without-concenate.html)

Johnny B[_2_]

Combine Cells without Concenate or &
 
Hey guys, quick question. How do you combine two horizontal cells without
using Concenate or "&"..?

Example:

| John | Doe |

into

| John Doe |

Thanks!,

Johnny B

Toppers

Combine Cells without Concenate or &
 
As far as I am aware, you can't.

"Johnny B" wrote:

Hey guys, quick question. How do you combine two horizontal cells without
using Concenate or "&"..?

Example:

| John | Doe |

into

| John Doe |

Thanks!,

Johnny B


Toppers

Combine Cells without Concenate or &
 
.... unless you use VBA (sorry!)

"Johnny B" wrote:

Hey guys, quick question. How do you combine two horizontal cells without
using Concenate or "&"..?

Example:

| John | Doe |

into

| John Doe |

Thanks!,

Johnny B


Gary''s Student

Combine Cells without Concenate or &
 
Select the first of the pairs and run:

Sub johnnyb()
For Each r In Selection
r.Value = r.Value & " " & r.Offset(0, 1).Value
r.Offset(0, 1).Clear
Next
End Sub

This put the concatenation in VBA rather than in your worksheet.
--
Gary''s Student
gsnu200712



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

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