ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How do I delete 250 rows on Excel sheet where ever a cell value =0 (https://www.excelbanter.com/excel-programming/349191-how-do-i-delete-250-rows-excel-sheet-where-ever-cell-value-%3D0.html)

K Suhail

How do I delete 250 rows on Excel sheet where ever a cell value =0
 
I have an Excel sheet with 2000 rows and I have the folowing formula on every
row with ab8, ab9,....ab2000
If(ab8=1,True,False) on the 8th row
If(ab9=1,True,False) on the 9th row, and so on
I want to write a macro that will delete every row if ab?=1 is false
Please help
Thanks

Bob Phillips[_6_]

How do I delete 250 rows on Excel sheet where ever a cell value =0
 
Filter on column A for the False value, then delete those visible rows.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"K Suhail" <K wrote in message
...
I have an Excel sheet with 2000 rows and I have the folowing formula on

every
row with ab8, ab9,....ab2000
If(ab8=1,True,False) on the 8th row
If(ab9=1,True,False) on the 9th row, and so on
I want to write a macro that will delete every row if ab?=1 is false
Please help
Thanks





All times are GMT +1. The time now is 06:14 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com