Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
mayhewvb
 
Posts: n/a
Default How do I incorporate 2 columns into 1 column


All,

My issue is that I have 2 columns of data, Column A and Column B. What
I would like to do is combine these 2 columns into 1 that would result
in something like this:

A1
B1
A2
B2
A3
B3
etc

There are 1000+ entries in each column and I have tried creating a 3rd
column plugging into the cells the following, hoping to create the
ability to click and drag and fill the rest of the relative values:

=A1
=B1
=A2
=B2
=A3
=B3
etc

However, when I click and drag, I am not able to keep the pattern
going. It always seems to revert to something like this after I try to
click and drag the fill box:

A1
A2
A3
A4

Any thoughts on a better way to accomplish this? Or perhaps a tip to
fill the pattern down the column? Sorry if I am missing something
totoally obvious.

Any help is appreciated!


--
mayhewvb
------------------------------------------------------------------------
mayhewvb's Profile: http://www.excelforum.com/member.php...o&userid=24352
View this thread: http://www.excelforum.com/showthread...hreadid=379488

  #2   Report Post  
duane
 
Posts: n/a
Default


just pur = a1 in row 1 of your column,

and put this in rows 2 and on

=IF(MOD(ROW(),2)0,INDIRECT("A"&ROUNDUP(ROW()/2,0)),INDIRECT("b"&ROUNDUP(ROW()/2,0)))


--
duane


------------------------------------------------------------------------
duane's Profile: http://www.excelforum.com/member.php...o&userid=11624
View this thread: http://www.excelforum.com/showthread...hreadid=379488

  #3   Report Post  
PeterAtherton
 
Posts: n/a
Default

Another way; use the macro to copy the data into colmn D, then delete columns
A and B

Sub CombineCols()
Dim r As Long, nr As Long, p As Long
Dim dest As Range
On Error Resume Next
Range("A1").Select
nr = ActiveCell.CurrentRegion.Rows.Count
p = Application.CountA("D:D") + 1
For r = 1 To nr
Set dest = Cells(p, 4)
Cells(r, 1).Copy Destination:=dest
p = p + 1
Set dest = Cells(p, 4)
Cells(r, 2).Copy Destination:=Cells(p, 4)
p = p + 1
Next r
End Sub

"mayhewvb" wrote:


All,

My issue is that I have 2 columns of data, Column A and Column B. What
I would like to do is combine these 2 columns into 1 that would result
in something like this:

A1
B1
A2
B2
A3
B3
etc

There are 1000+ entries in each column and I have tried creating a 3rd
column plugging into the cells the following, hoping to create the
ability to click and drag and fill the rest of the relative values:

=A1
=B1
=A2
=B2
=A3
=B3
etc

However, when I click and drag, I am not able to keep the pattern
going. It always seems to revert to something like this after I try to
click and drag the fill box:

A1
A2
A3
A4

Any thoughts on a better way to accomplish this? Or perhaps a tip to
fill the pattern down the column? Sorry if I am missing something
totoally obvious.

Any help is appreciated!


--
mayhewvb
------------------------------------------------------------------------
mayhewvb's Profile: http://www.excelforum.com/member.php...o&userid=24352
View this thread: http://www.excelforum.com/showthread...hreadid=379488



  #4   Report Post  
Gord Dibben
 
Posts: n/a
Default

You could use this macro.

Sub CombineCols()
''combine 2 columns to one with data from Col 2 being inserted
''between data from Col 1
Range("A1").Select
Do Until ActiveCell.Value = ""
ActiveCell.Offset(1, 0).EntireRow.Select
ActiveCell.EntireRow.Insert
ActiveCell.Select
ActiveCell.Value = ActiveCell.Offset(-1, 1).Value
ActiveCell.Offset(-1, 1).Value = ""
ActiveCell.Offset(1, 0).Select
Loop
End Sub


Gord Dibben Excel MVP

On Wed, 15 Jun 2005 15:50:58 -0500, mayhewvb
wrote:


All,

My issue is that I have 2 columns of data, Column A and Column B. What
I would like to do is combine these 2 columns into 1 that would result
in something like this:

A1
B1
A2
B2
A3
B3
etc

There are 1000+ entries in each column and I have tried creating a 3rd
column plugging into the cells the following, hoping to create the
ability to click and drag and fill the rest of the relative values:

=A1
=B1
=A2
=B2
=A3
=B3
etc

However, when I click and drag, I am not able to keep the pattern
going. It always seems to revert to something like this after I try to
click and drag the fill box:

A1
A2
A3
A4

Any thoughts on a better way to accomplish this? Or perhaps a tip to
fill the pattern down the column? Sorry if I am missing something
totoally obvious.

Any help is appreciated!


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
Columns FemIce Excel Discussion (Misc queries) 1 September 28th 05 09:29 AM
print 3 column range in six columns dawgpilot Excel Discussion (Misc queries) 3 April 28th 05 10:53 PM
sort column data with hidden columns - excel 2003 nanimadrina Excel Discussion (Misc queries) 2 April 26th 05 08:27 PM
formula - sum "x" column L only when same row contains "y" columns Psalm91jim Excel Worksheet Functions 3 April 12th 05 12:55 PM
Splitting text in one column into two (or more) columns. RickyDee Excel Worksheet Functions 4 December 7th 04 10:03 PM


All times are GMT +1. The time now is 07:47 AM.

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"