ThePangloss
New Member
- Joined
- Jun 19, 2015
- Messages
- 40
I'm very new to VBA, so I'm not sure how to do this.
I have a Sheet1 containing names and such. In the 6th column there numbers and #N/A's scattered across. I'd like to be able to remove all the #N/A's and paste them to a separate sheet for analysis on them without having the filled cells in that column move with them.
I'd like to move it to Sheet3 if possible, so it'd be something like this on Sheet1
[TABLE="width: 500"]
<tbody>[TR]
[TD]Last[/TD]
[TD]First[/TD]
[TD]Day[/TD]
[TD]Month[/TD]
[TD]Year[/TD]
[TD]Work#[/TD]
[/TR]
[TR]
[TD]doe[/TD]
[TD]john[/TD]
[TD]10[/TD]
[TD]2[/TD]
[TD]1990[/TD]
[TD]#N/A[/TD]
[/TR]
[TR]
[TD]jane[/TD]
[TD]mary[/TD]
[TD]29[/TD]
[TD]4[/TD]
[TD]1928[/TD]
[TD]22829[/TD]
[/TR]
[TR]
[TD]marley[/TD]
[TD]bob[/TD]
[TD]21[/TD]
[TD]3[/TD]
[TD]1960[/TD]
[TD]#N/A[/TD]
[/TR]
[TR]
[TD]duck[/TD]
[TD]sam[/TD]
[TD]9[/TD]
[TD]8[/TD]
[TD]1992[/TD]
[TD]29282[/TD]
[/TR]
</tbody>[/TABLE]
then after applying the code on Sheet3 I'd like to have
[TABLE="width: 500"]
<tbody>[TR]
[TD]Last[/TD]
[TD]First[/TD]
[TD]Day[/TD]
[TD]Month[/TD]
[TD]Year[/TD]
[TD]Work#[/TD]
[/TR]
[TR]
[TD]doe[/TD]
[TD]john[/TD]
[TD]10[/TD]
[TD]2[/TD]
[TD]1990[/TD]
[TD]#N/A[/TD]
[/TR]
[TR]
[TD]marley[/TD]
[TD]bob[/TD]
[TD]21[/TD]
[TD]3[/TD]
[TD]1960[/TD]
[TD]#N/A[/TD]
[/TR]
</tbody>[/TABLE]
and it would continue down for all rows in Sheet1 which is about 7k
Anyone have any advice?
I have a Sheet1 containing names and such. In the 6th column there numbers and #N/A's scattered across. I'd like to be able to remove all the #N/A's and paste them to a separate sheet for analysis on them without having the filled cells in that column move with them.
I'd like to move it to Sheet3 if possible, so it'd be something like this on Sheet1
[TABLE="width: 500"]
<tbody>[TR]
[TD]Last[/TD]
[TD]First[/TD]
[TD]Day[/TD]
[TD]Month[/TD]
[TD]Year[/TD]
[TD]Work#[/TD]
[/TR]
[TR]
[TD]doe[/TD]
[TD]john[/TD]
[TD]10[/TD]
[TD]2[/TD]
[TD]1990[/TD]
[TD]#N/A[/TD]
[/TR]
[TR]
[TD]jane[/TD]
[TD]mary[/TD]
[TD]29[/TD]
[TD]4[/TD]
[TD]1928[/TD]
[TD]22829[/TD]
[/TR]
[TR]
[TD]marley[/TD]
[TD]bob[/TD]
[TD]21[/TD]
[TD]3[/TD]
[TD]1960[/TD]
[TD]#N/A[/TD]
[/TR]
[TR]
[TD]duck[/TD]
[TD]sam[/TD]
[TD]9[/TD]
[TD]8[/TD]
[TD]1992[/TD]
[TD]29282[/TD]
[/TR]
</tbody>[/TABLE]
then after applying the code on Sheet3 I'd like to have
[TABLE="width: 500"]
<tbody>[TR]
[TD]Last[/TD]
[TD]First[/TD]
[TD]Day[/TD]
[TD]Month[/TD]
[TD]Year[/TD]
[TD]Work#[/TD]
[/TR]
[TR]
[TD]doe[/TD]
[TD]john[/TD]
[TD]10[/TD]
[TD]2[/TD]
[TD]1990[/TD]
[TD]#N/A[/TD]
[/TR]
[TR]
[TD]marley[/TD]
[TD]bob[/TD]
[TD]21[/TD]
[TD]3[/TD]
[TD]1960[/TD]
[TD]#N/A[/TD]
[/TR]
</tbody>[/TABLE]
and it would continue down for all rows in Sheet1 which is about 7k
Anyone have any advice?