My excel values are like (Column A and B):
Now, I want to remove duplicates in column A if any duplicates has value of zero (in column B). So for the above example, I should keep a and b only.
I tried:
IF((COUNTIF(A:A,A2)>1)*(B2=0),"REMOVE","KEEP")
and I get:
But for all c's, it should be remove.
What's wrong in my if condition? Thanks.


