Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Countif result problem CindyW Excel Discussion (Misc queries) 4 April 7th 10 03:09 PM
how to make an IF function that has the same result as COUNTIF? Alex Khan Excel Worksheet Functions 4 July 24th 08 11:15 PM
How to get result by using CountIF, if there are 3 conditions to b Subbu Excel Worksheet Functions 4 July 6th 08 11:15 AM
COUNTIF on result of formula Joe M. Excel Discussion (Misc queries) 4 January 4th 08 03:04 PM
Countif result in message box M3Cobb[_9_] Excel Programming 4 June 12th 06 10:29 AM


All times are GMT +1. The time now is 05:20 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"