Hi Pankaj,

On column C you could write the following formula

=trim(a1)& " " &trim(b1)

You will have no leading or trailing spaces when paste the content of
column C in the Notepad for instance.

HTH,

OS


2013/8/14 Pankaj <pankajdhamij...@gmail.com>

> Thanx for your great help. Only one issue - I was able to merge the
> contents of the 2 columns as needed by me. But when I paste the content of
> the resultant cell in a text editor I get " " in the beginning and the end
> of the text. Why is it appearing and how to prevent it from appearing?
>
>
> On Tuesday, August 13, 2013 1:26:31 PM UTC+5:30, Ravinder Negi wrote:
>
>> pfa...first select area which you want to merge...example select range
>> "A1:B4" then click on button
>>
>>   ------------------------------
>>  *From:* Pankaj <pankajd...@gmail.com>
>> *To:* excel-...@googlegroups.com
>> *Cc:* ravinder negi <ravi_c...@yahoo.com>
>> *Sent:* Tuesday, August 13, 2013 8:49 AM
>> *Subject:* Re: $$Excel-Macros$$ Help needed in Excel
>>
>>
>> I want to merge contents of column A & B as shown in column C. Please see
>> the sample file enclosed
>>
>>
>> On Wednesday, August 7, 2013 2:34:57 PM UTC+5:30, Ravinder Negi wrote:
>>
>> pls provide excel or explain more about your query...
>>
>>   ------------------------------
>>  *From:* Pankaj <pankajd...@gmail.com>
>> *To:* excel-...@googlegroups.com
>> *Sent:* Wednesday, August 7, 2013 9:23 AM
>> *Subject:* $$Excel-Macros$$ Help needed in Excel
>>
>>
>>
>> I have 2 columns in excel - A and B.
>>
>> I want to merge the contents of a horizontal row one below the other as:
>> A
>> B
>>
>> please tell me a formula to do this as the columns contain 900 cells each
>> and I cannnot merge the contents manually using Alt + Enter. --
>> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
>> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
>> https://www.facebook.com/
>> discussexcel <https://www.facebook.com/discussexcel>
>>
>> FORUM RULES
>>
>> 1) Use concise, accurate thread titles. Poor thread titles, like Please
>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>> will not get quick attention or may not be answered.
>> 2) Don't post a question in the thread of another member.
>> 3) Don't post questions regarding breaking or bypassing any security
>> measure.
>> 4) Acknowledge the responses you receive, good or bad.
>> 5) Jobs posting is not allowed.
>> 6) Sharing copyrighted material and their links is not allowed.
>>
>> NOTE : Don't ever post confidential data in a workbook. Forum owners and
>> members are not responsible for any loss.
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "MS EXCEL AND VBA MACROS" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to excel-macros...@ googlegroups.com.
>> To post to this group, send email to excel-...@googlegroups.com.
>> Visit this group at http://groups.google.com/ 
>> group/excel-macros<http://groups.google.com/group/excel-macros>
>> .
>> For more options, visit https://groups.google.com/ 
>> groups/opt_out<https://groups.google.com/groups/opt_out>
>> .
>>
>>
>>
>>
>>   --
>> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
>> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
>> https://www.facebook.com/**discussexcel<https://www.facebook.com/discussexcel>
>>
>> FORUM RULES
>>
>> 1) Use concise, accurate thread titles. Poor thread titles, like Please
>> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
>> will not get quick attention or may not be answered.
>> 2) Don't post a question in the thread of another member.
>> 3) Don't post questions regarding breaking or bypassing any security
>> measure.
>> 4) Acknowledge the responses you receive, good or bad.
>> 5) Jobs posting is not allowed.
>> 6) Sharing copyrighted material and their links is not allowed.
>>
>> NOTE : Don't ever post confidential data in a workbook. Forum owners and
>> members are not responsible for any loss.
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "MS EXCEL AND VBA MACROS" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to excel-macros...@**googlegroups.com.
>>
>> To post to this group, send email to excel-...@googlegroups.com.
>> Visit this group at 
>> http://groups.google.com/**group/excel-macros<http://groups.google.com/group/excel-macros>
>> .
>> For more options, visit 
>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>> .
>>
>>
>>
>>
>>   --
> Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s
> =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @
> https://www.facebook.com/discussexcel
>
> FORUM RULES
>
> 1) Use concise, accurate thread titles. Poor thread titles, like Please
> Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice
> will not get quick attention or may not be answered.
> 2) Don't post a question in the thread of another member.
> 3) Don't post questions regarding breaking or bypassing any security
> measure.
> 4) Acknowledge the responses you receive, good or bad.
> 5) Jobs posting is not allowed.
> 6) Sharing copyrighted material and their links is not allowed.
>
> NOTE : Don't ever post confidential data in a workbook. Forum owners and
> members are not responsible for any loss.
> ---
> You received this message because you are subscribed to the Google Groups
> "MS EXCEL AND VBA MACROS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to excel-macros+unsubscr...@googlegroups.com.
> To post to this group, send email to excel-macros@googlegroups.com.
> Visit this group at http://groups.google.com/group/excel-macros.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
ITWare

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to