Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 519
Default Text Combining Col A and Col B to Col A

Hello from Steve Dee

In column A I have Smith
In Column B I Have Brian

Can I add text from Col B to Col A to have Smith Brian

Thankyou.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Text Combining Col A and Col B to Col A

try =A1&" "&B1 in C1 and fill down
--
John
MOS Master Instructor Office 2000, 2002 & 2003
Please reply & rate any replies you get

Ice Hockey rules (especially the Wightlink Raiders)


"Steved" wrote:

Hello from Steve Dee

In column A I have Smith
In Column B I Have Brian

Can I add text from Col B to Col A to have Smith Brian

Thankyou.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 519
Default Text Combining Col A and Col B to Col A

Hello from Steved

My objective is to Combine Col A and Col B into Col A

Thankyou.

"John" wrote:

try =A1&" "&B1 in C1 and fill down
--
John
MOS Master Instructor Office 2000, 2002 & 2003
Please reply & rate any replies you get

Ice Hockey rules (especially the Wightlink Raiders)


"Steved" wrote:

Hello from Steve Dee

In column A I have Smith
In Column B I Have Brian

Can I add text from Col B to Col A to have Smith Brian

Thankyou.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default Text Combining Col A and Col B to Col A

The only way to do this is with VBA Something like this should work

Sub trythis()
Dim lastcell As Long
Dim i As Long
lastcell = Cells(Rows.Count, "A").End(xlUp).Row
For i = 1 To lastcell
'combine Column A and B
Range("A" & i).Value = Range("A" & i).Value & "," & _
Range("A" & i).Offset(0, 1).Value
'clear column B value
Range("A" & i).Offset(0, 1).Value = ""
Next
End Sub

"Steved" wrote:

Hello from Steved

My objective is to Combine Col A and Col B into Col A

Thankyou.

"John" wrote:

try =A1&" "&B1 in C1 and fill down
--
John
MOS Master Instructor Office 2000, 2002 & 2003
Please reply & rate any replies you get

Ice Hockey rules (especially the Wightlink Raiders)


"Steved" wrote:

Hello from Steve Dee

In column A I have Smith
In Column B I Have Brian

Can I add text from Col B to Col A to have Smith Brian

Thankyou.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Text Combining Col A and Col B to Col A

try this idea

Sub combinecolumns()
lr = Cells(Rows.Count, "i").End(xlUp).Row
For Each c In Range("i2:i" & lr)
c.Value = c & ", " & c.Offset(, 1)
Next c
Range("j2:j" & lr).ClearContents
'or columns("J").delete
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Steved" wrote in message
...
Hello from Steve Dee

In column A I have Smith
In Column B I Have Brian

Can I add text from Col B to Col A to have Smith Brian

Thankyou.




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 519
Default Text Combining Col A and Col B to Col A

Hello Mike

Exactly What I required

Thankyou

Steved

"Mike" wrote:

The only way to do this is with VBA Something like this should work

Sub trythis()
Dim lastcell As Long
Dim i As Long
lastcell = Cells(Rows.Count, "A").End(xlUp).Row
For i = 1 To lastcell
'combine Column A and B
Range("A" & i).Value = Range("A" & i).Value & "," & _
Range("A" & i).Offset(0, 1).Value
'clear column B value
Range("A" & i).Offset(0, 1).Value = ""
Next
End Sub

"Steved" wrote:

Hello from Steved

My objective is to Combine Col A and Col B into Col A

Thankyou.

"John" wrote:

try =A1&" "&B1 in C1 and fill down
--
John
MOS Master Instructor Office 2000, 2002 & 2003
Please reply & rate any replies you get

Ice Hockey rules (especially the Wightlink Raiders)


"Steved" wrote:

Hello from Steve Dee

In column A I have Smith
In Column B I Have Brian

Can I add text from Col B to Col A to have Smith Brian

Thankyou.

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 519
Default Text Combining Col A and Col B to Col A

Hello Don

Thankyou

Steved

"Don Guillett" wrote:

try this idea

Sub combinecolumns()
lr = Cells(Rows.Count, "i").End(xlUp).Row
For Each c In Range("i2:i" & lr)
c.Value = c & ", " & c.Offset(, 1)
Next c
Range("j2:j" & lr).ClearContents
'or columns("J").delete
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Steved" wrote in message
...
Hello from Steve Dee

In column A I have Smith
In Column B I Have Brian

Can I add text from Col B to Col A to have Smith Brian

Thankyou.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
combining text Jeanette Excel Discussion (Misc queries) 3 April 2nd 10 02:50 PM
Advanced text function (combining text) Johan[_2_] Excel Worksheet Functions 2 March 27th 08 10:05 PM
Combining text from different Cells IF henrymartz Excel Discussion (Misc queries) 1 August 16th 06 07:53 PM
combining text Dave Green Excel Worksheet Functions 2 February 7th 06 02:03 PM
Combining text Ruthe6 Excel Discussion (Misc queries) 3 August 25th 05 02:05 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"