1

My excel values are like (Column A and B):

enter image description here

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:

enter image description here

But for all c's, it should be remove.

What's wrong in my if condition? Thanks.

1 Answer 1

1

Check if any row with the same value in column A contains a zero:

=IF(COUNTIFS(A:A,A1,B:B,0),"Remove","Keep")

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.