PC Review


Reply
Thread Tools Rate Thread

delete row countif result

 
 
vincentwady@gmail.com
Guest
Posts: n/a
 
      30th Aug 2007
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 With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      30th Aug 2007
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


"(E-Mail Removed)" 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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Countif result problem CindyW Microsoft Excel Misc 4 7th Apr 2010 03:09 PM
How to get result by using CountIF, if there are 3 conditions to b Subbu Microsoft Excel Worksheet Functions 4 6th Jul 2008 11:15 AM
COUNTIF on result of formula Joe M. Microsoft Excel Misc 4 4th Jan 2008 03:04 PM
Countif result in message box M3Cobb Microsoft Excel Programming 4 12th Jun 2006 10:29 AM
Getting the ROW of a COUNTIF result? LR Microsoft Excel Discussion 2 16th Apr 2006 07:45 PM


Features
 

Advertising
 

Newsgroups
 


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