Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
delete row countif result
Dear all,
I have a huge data in my excel I need to delete, I have an identify formula, countif, for the data in column B. I wish to delete the repeat one, and the result in countif would be larger than 0. How I can write a vba code to delete the result in column A large than 0? thanks Vincent |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
delete row countif result
Sub ABC()
Dim lastrow as Long, i as Long lastrow = cells(rows.count,1).End(xlup).row for i = lastrow to 1 step -1 if isnumeric(cells(i,1)) then if cells(i,1) 0 then rows(i).Delete end if end if Next -- Regards, Tom Ogilvy " wrote: Dear all, I have a huge data in my excel I need to delete, I have an identify formula, countif, for the data in column B. I wish to delete the repeat one, and the result in countif would be larger than 0. How I can write a vba code to delete the result in column A large than 0? thanks Vincent |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Countif result problem | Excel Discussion (Misc queries) | |||
how to make an IF function that has the same result as COUNTIF? | Excel Worksheet Functions | |||
How to get result by using CountIF, if there are 3 conditions to b | Excel Worksheet Functions | |||
COUNTIF on result of formula | Excel Discussion (Misc queries) | |||
Countif result in message box | Excel Programming |