Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You're right Bob. I'm slipping into senility here.
"Bob Umlas" wrote: Sub DeleteNotP() 'do it backwards so deleting rows doesn't mess this up! for i=range("B65536").end(xlup).Row to 1 step -1 if cells(i,2).value < "P" then rows(i).Delete Next End Sub Bob Umlas Excel MVP "miek" wrote in message ... Could someone help get me started on with the following: I have text in column B that has a "P", "S", or "". Number of rows varies, but ends with an empty row. How do I step through each row and test if column B has a value < "P", delete that row? Thanks for any help |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Delete Rows based on condition | Excel Discussion (Misc queries) | |||
Delete row 1 based on condition in cell on row 2 | Excel Worksheet Functions | |||
How to delete a data row based on a condition | New Users to Excel | |||
Is there a way to delete a cell value based on a condition? | Excel Discussion (Misc queries) | |||
Delete Columns based on a condition | Excel Programming |