PC Review


Reply
Thread Tools Rate Thread

concatenate two columns

 
 
ranjan.khan@comcast.net
Guest
Posts: n/a
 
      15th Mar 2007
I would like to concatenate the text in Column B with the text in
Column A and place the results in Column K. Keep in mind that Column
B and Column A may vary in length - meaning that
Column B may have 37 rows of text and and Column A may have 23 rows of
text.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?R2FyeScncyBTdHVkZW50?=
Guest
Posts: n/a
 
      15th Mar 2007
In C1 enter:
=A1 & B1

and copy down as far as you like.
--
Gary''s Student
gsnu200710


"(E-Mail Removed)" wrote:

> I would like to concatenate the text in Column B with the text in
> Column A and place the results in Column K. Keep in mind that Column
> B and Column A may vary in length - meaning that
> Column B may have 37 rows of text and and Column A may have 23 rows of
> text.
>
>

 
Reply With Quote
 
David McRitchie
Guest
Posts: n/a
 
      15th Mar 2007
Not sure if this is what you wanted, but here is one interpretation:

K23: =TRIM(A23 & " " & B23)

If changes to internal spaces would be inappropriate:

K23: =IF(A23="",IF(B23="","", B23), A23)

TRIM Worksheet Function
Remove duplicate inner spaces as well as the
leading and trailing spaces.

Use the Fill Handle to copy down from first use of formula
http://www.mvps.org/dmcritchie/excel/fillhand.htm

---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

<(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> I would like to concatenate the text in Column B with the text in
> Column A and place the results in Column K. Keep in mind that Column
> B and Column A may vary in length - meaning that
> Column B may have 37 rows of text and Column A may have 23 rows of
> text.
>




 
Reply With Quote
 
David McRitchie
Guest
Posts: n/a
 
      15th Mar 2007
correction left out the concatenation in the second example
K23: =IF(A23="",IF(B23="","", B23), A23 & " " & B23)


"David McRitchie" <(E-Mail Removed)> wrote in message news:%23DK$(E-Mail Removed)...
> Not sure if this is what you wanted, but here is one interpretation:
>
> K23: =TRIM(A23 & " " & B23)
>
> If changes to internal spaces would be inappropriate:
>
> [see correction]



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
CONCATENATE TWO COLUMNS The Cable Guy Microsoft Excel Worksheet Functions 3 16th Dec 2009 04:37 AM
Macro to concatenate columns stallone Microsoft Excel Programming 1 10th Dec 2009 05:14 PM
Concatenate two columns? uma Microsoft Excel Worksheet Functions 1 19th Apr 2006 09:46 AM
Re: Concatenate 3 columns. Jim15 Microsoft Excel Programming 0 23rd Feb 2006 05:08 PM
Concatenate 3 columns. Jim15 Microsoft Excel Programming 0 23rd Feb 2006 05:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:26 AM.