Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Comparing values in two columns for duplicates

I have four columns of data which I need to compare. For example:

Slip NoAmountSlip NoAmountDuplicate
11004400Duplicate
22005500
33006600
44001100Duplicate


That is if BOTH Column 1 (Slip No) and Column 2 (Amount) together is repeated in Column 3 and Column 4, the last column should show - Duplicate.

Posted on Mar 17, 2018 1:20 AM

Reply
Question marked as Best reply

Posted on Mar 17, 2018 5:34 AM

Hi Georgie,


I made Row 1 a Header Row (it didn't copy as a Header Row from your post). That simplifies the formula in G and ensures that the formula automatically extends as you add more rows.


Step 1, add extra columns (C and F) to combine Slip No and Amount, using the & (concatenate) operator.

User uploaded file

Step 2. Formula in G2 (and Fill Down)

=INDEX(C,MATCH(F2,C,0))

User uploaded file

My cheat sheet for INDEX and Match:

=INDEX(Column I want a return value from,

MATCH(My Lookup Value,

Column I want to Lookup against,

Enter “0″ ))


Where there is a duplicate, it finds it. Where no duplicate exists, it throws a red error triangle. We can develop this further to make it look more "professional".


Regards,

Ian.

3 replies

There are no replies.

Comparing values in two columns for duplicates

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.