Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Sawyer
 
Posts: n/a
Default Combine Two Colums

Hello All
Need help with the script below or maybe a better one. I need to combine the
items in Column A and Column B into one Column
The one below will combine the data into one column but it is backward, I
need the text in column B to be added after the text in column A
Thanks for any help Scott

Sub addData()
For r = 2 To 100
Cells(r, "D").Value = " & Cells(r, "D").Value
Next r
End Sub


This is what I have
A B C D
E
1 Jimmy @website.com
2 Jimmy @website.com
3 Jimmy @website.com
4 Jimmy @website.com
5
6
Sample of what I need

a b c
d e
1
2

3

4

5

6
7
8


  #2   Report Post  
Posted to microsoft.public.excel.newusers
JMB
 
Posts: n/a
Default Combine Two Colums

You could just enter =A1&B1 in cell D1 and copy it down.


"Sawyer" wrote:

Hello All
Need help with the script below or maybe a better one. I need to combine the
items in Column A and Column B into one Column
The one below will combine the data into one column but it is backward, I
need the text in column B to be added after the text in column A
Thanks for any help Scott

Sub addData()
For r = 2 To 100
Cells(r, "D").Value = " & Cells(r, "D").Value
Next r
End Sub


This is what I have
A B C D
E
1 Jimmy @website.com
2 Jimmy @website.com
3 Jimmy @website.com
4 Jimmy @website.com
5
6
Sample of what I need

a b c
d e
1
2

3

4

5

6
7
8



  #3   Report Post  
Posted to microsoft.public.excel.newusers
RajKohli
 
Posts: n/a
Default Combine Two Colums

Apply the formula said by JMB and after that hide the original columns if you
don't want them. Donot delete them.

"Sawyer" wrote:

Hello All
Need help with the script below or maybe a better one. I need to combine the
items in Column A and Column B into one Column
The one below will combine the data into one column but it is backward, I
need the text in column B to be added after the text in column A
Thanks for any help Scott

Sub addData()
For r = 2 To 100
Cells(r, "D").Value = " & Cells(r, "D").Value
Next r
End Sub


This is what I have
A B C D
E
1 Jimmy @website.com
2 Jimmy @website.com
3 Jimmy @website.com
4 Jimmy @website.com
5
6
Sample of what I need

a b c
d e
1
2

3

4

5

6
7
8



  #4   Report Post  
Posted to microsoft.public.excel.newusers
excelent
 
Posts: n/a
Default Combine Two Colums

Sub addData2()
Dim r
For r = 2 To 100
Cells(r, 1).Value = Cells(r, 1).Value & Cells(r, 2)
Next r
End Sub
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
Combine data from 2 worksheets using unique identifier CathyW Excel Worksheet Functions 0 March 23rd 06 02:06 AM
macro: combine / modify date / hilite nastech Excel Discussion (Misc queries) 1 February 5th 06 04:36 PM
How do I combine 2 or more colums justme New Users to Excel 2 November 16th 05 10:57 PM
How to combine text from multiple cells? sierra Excel Worksheet Functions 3 July 11th 05 01:55 PM
Excel data not transfering to Word. Colums are expanded. carolsue1313 New Users to Excel 2 June 24th 05 08:16 PM


All times are GMT +1. The time now is 05:28 PM.

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

About Us

"It's about Microsoft Excel"