Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Join cell data in two columns

Hey all,

This is probably simpler than I think but then again I am a newbie at
macros or anything programming related.

What I am looking for is an Excel macro that joins (not merges) data
from two cells in different columns. So, basically the opposite of
Text to columns. And I need it to do this for as many rows as needed
until there is nothing left to join. Below is an example:

Column 1 Column 2

23 Whatever St. Suite 2
87 Nowhere Rd. #201

So, now I just want column 1 to read:

23 Whatever St. Suite 2
87 Nowhere Rd. #201

This would be a huge help so thank you to all in advance.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Join cell data in two columns

You don't need a macro to do this.

=A1 & " " & B1 entered in C1

Double-click on fill handle of C1 to fill down.

Select Column C and copy then edit<paste specialvaluesokesc.

Delete A and B columns.

If you want to use a macro, use the macro recorder to get code.


Gord Dibben MS Excel MVP

On Wed, 17 Oct 2007 20:21:27 -0000, Myke wrote:

Hey all,

This is probably simpler than I think but then again I am a newbie at
macros or anything programming related.

What I am looking for is an Excel macro that joins (not merges) data
from two cells in different columns. So, basically the opposite of
Text to columns. And I need it to do this for as many rows as needed
until there is nothing left to join. Below is an example:

Column 1 Column 2

23 Whatever St. Suite 2
87 Nowhere Rd. #201

So, now I just want column 1 to read:

23 Whatever St. Suite 2
87 Nowhere Rd. #201

This would be a huge help so thank you to all in advance.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Join cell data in two columns

You don't need a macro, try:-

=concatenate(a1," ",a2)

or

=A1 &" " & B1

Mike


"Myke" wrote:

Hey all,

This is probably simpler than I think but then again I am a newbie at
macros or anything programming related.

What I am looking for is an Excel macro that joins (not merges) data
from two cells in different columns. So, basically the opposite of
Text to columns. And I need it to do this for as many rows as needed
until there is nothing left to join. Below is an example:

Column 1 Column 2

23 Whatever St. Suite 2
87 Nowhere Rd. #201

So, now I just want column 1 to read:

23 Whatever St. Suite 2
87 Nowhere Rd. #201

This would be a huge help so thank you to all in advance.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Join cell data in two columns

On Oct 17, 4:47 pm, Mike H wrote:
You don't need a macro, try:-

=concatenate(a1," ",a2)

or

=A1 &" " & B1

Mike

"Myke" wrote:
Hey all,


This is probably simpler than I think but then again I am a newbie at
macros or anything programming related.


What I am looking for is an Excel macro that joins (not merges) data
from two cells in different columns. So, basically the opposite of
Text to columns. And I need it to do this for as many rows as needed
until there is nothing left to join. Below is an example:


Column 1 Column 2


23 Whatever St. Suite 2
87 Nowhere Rd. #201


So, now I just want column 1 to read:


23 Whatever St. Suite 2
87 Nowhere Rd. #201


This would be a huge help so thank you to all in advance.


Awesome. See, I knew it had to be simple but I wasn't finding it on
Google. Thanks guys.

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
How do I join 3 separate columns of dates H8Workn Excel Worksheet Functions 6 March 10th 09 07:43 PM
Join multiple rows into columns Will Excel Discussion (Misc queries) 4 February 13th 09 03:35 AM
Join multiple rows into columns Will Excel Discussion (Misc queries) 1 February 11th 09 02:30 PM
Is it possible to join columns where there is a match? QuickLearner[_10_] Excel Programming 1 June 25th 06 10:59 PM
join columns, keep both values FourPenny New Users to Excel 5 May 31st 05 01:36 AM


All times are GMT +1. The time now is 04:19 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"