FORMULA TO FIND DUPLICATES

J

Joe H.

I need find a formula to identify duplicate numbers in a column being either
a debit or a credit. For example:
A B
1234.00 duplicate
2345.00
3456.00 duplicate
4567.00
-1234.00 duplicate
-3456.00 duplicate
Thanks!
 
J

JE McGimpsey

Joe H. said:
I need find a formula to identify duplicate numbers in a column being either
a debit or a credit. For example:
A B
1234.00 duplicate
2345.00
3456.00 duplicate
4567.00
-1234.00 duplicate
-3456.00 duplicate

One way (array-entered with CMD-RETURN):


B1: =IF(SUMPRODUCT(--(ABS($A$1:$A$6)=ABS(A1)))>1,"duplicate","")

Copy down to B6
 
J

JE McGimpsey

JE McGimpsey said:
One way (array-entered with CMD-RETURN):


B1: =IF(SUMPRODUCT(--(ABS($A$1:$A$6)=ABS(A1)))>1,"duplicate","")

Copy down to B6

Oops - changed the formula, but didn't change the instruction:

No array-entering needed....
 
J

JE McGimpsey

Joe H. said:
Is there a way to not have "dulplicate" print next to blank cells?

One way:

=IF(SUMPRODUCT(--($A$1:$A$6<>""),--(ABS($A$1:$A$6)=ABS(A9)))>1,
"duplicate", "")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top