Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a worksheet with 2 columns and 21585 rows.
I want to delete all of the rows where there is a value of "0" in column B. Any suggestions? Thanks, Steve |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
NEVER MIND, I FIGURED IT OUT
I just filtered for "0", selected all the rows, then deleted them. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Maybe
Sub Macro2() lastrow = Cells(Rows.Count, "B").End(xlUp).Row For x = lastrow To 1 Step -1 If IsNumeric(Cells(x, 2).Value) And Cells(x, 2).Value = 0 Then Rows(x).EntireRow.Delete End If Next End Sub Mike "sek0910" wrote: I have a worksheet with 2 columns and 21585 rows. I want to delete all of the rows where there is a value of "0" in column B. Any suggestions? Thanks, Steve |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Delete Rows if any cell in Column H is blank but do not Delete Fir | Excel Programming | |||
How to Delete rows in a column | Excel Programming | |||
Delete Rows Where Value in Column V is Less than 2.5? | Excel Programming | |||
Delete rows with nothing in Column B | Excel Programming | |||
Delete All Rows That Column A value is not in Column A of Sheet2 | Excel Programming |