Conditionally Deleting Rows

dudewheresmyvba

New Member
Joined
Jul 6, 2017
Messages
29
So I am needing to clean up my data some and that entails deleting rows that have D, F, I, O, Q, or U in them. Theres 4637 rows so it would be rather difficult to do this by hand. Is there some way to take the first 3 columns (A B and C) and if they contain D, F, I, O, Q, or U in any of those cells just delete the entire row and shift up the data? My other columns do have data in them that can be deleted but their content should not qualify for this.

Data is set up as so:

[TABLE="width: 192"]
<tbody>[TR]
[TD="class: xl17, width: 64"]A[/TD]
[TD="class: xl17, width: 64"]0[/TD]
[TD="class: xl17, width: 64"]A[/TD]
[/TR]
[TR]
[TD="class: xl17"]A[/TD]
[TD="class: xl17"]0[/TD]
[TD="class: xl17"]B[/TD]
[/TR]
[TR]
[TD="class: xl17"]A[/TD]
[TD="class: xl17"]0[/TD]
[TD="class: xl17"]C[/TD]
[/TR]
[TR]
[TD="class: xl17"]A[/TD]
[TD="class: xl17"]0[/TD]
[TD="class: xl17"]D[/TD]
[/TR]
[TR]
[TD="class: xl17"]A[/TD]
[TD="class: xl17"]0[/TD]
[TD="class: xl17"]E[/TD]
[/TR]
[TR]
[TD="class: xl17"]A[/TD]
[TD="class: xl17"]0[/TD]
[TD="class: xl17"]F[/TD]
[/TR]
</tbody>[/TABLE]



etc.. for 4600 rows
 
Last edited:

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,223,896
Messages
6,175,265
Members
452,627
Latest member
KitkatToby

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
Back
Top