how to copy every thing written inside one Column without copying the empty cells?

john65442

New Member
Joined
Feb 25, 2011
Messages
13
Hi:-
i have a Column inside excel file
this Column contain written items in each cell [ for example Columns 1 to 150 are full ]
but at the end there are empty cells [ for example from Column 151 to the end ]

i want to copy Columns that are not empty and put them in text file
without copying the empty cells [which are from 151 to the end of the file]
how can i do this?

i want to merge Columns A & B
how can I merge two Columns ?
Thank you .
 

Some videos you may like

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Glory

Well-known Member
Joined
Mar 16, 2011
Messages
640
First part:

I don't know.

Second part, something like:

Code:
public sub test()
 
a = Range("A1:B" & Range("B" & Rows.Count).End(xlUp).Row)
 
For b = 1 to a
 
   Cells(b,3) = Cells(b,1) & Cells(b,2)
 
Next
 
End Sub
?
 

john65442

New Member
Joined
Feb 25, 2011
Messages
13
I found this software

Excel Extract Data & Text Software

and i am using and it solved the issue

it is from

<!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"جدول عادي"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} </style> <![endif]-->

Thank you
 

Watch MrExcel Video

Forum statistics

Threads
1,123,110
Messages
5,599,773
Members
414,336
Latest member
Nicolas2465

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top