Deleting cells in columns given a criteria and delete the corresponding row

nekmat97

New Member
Joined
Jan 15, 2018
Messages
8
Hello all,

I have a spreadsheet that has data from B3:AA15000 that is filled with numbers. I also have a drop down box in cell A1 where a logical (i.e. >,<,<>) is chosen, a drop down box where a data type is chosen (A,B,C,D, these data types are column headers for columns X:AA) in cell B1 and the value is entered in cell C1, and if the criteria is met (e.g. value = 100, logical = <, data type = A), all the values lower than 100 in cells column X3 which is data type "A" are deleted, but also the row that contains this data is also deleted.

So for example, if Z100 has a value lower than 100, the whole row "100" is deleted but only from X3:AA15000.

Any help would be greatly appreciated. Thanks!

This is a cross post: Link to other post (
https://www.excelforum.com/excel-programming-vba-macros/1238369-deleting-data-in-a-rows.html)
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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