Duplicate check

Ahmed Fawad

Board Regular
Joined
Mar 1, 2011
Messages
63
Office Version
  1. 2016
Platform
  1. Windows
[TABLE="width: 130"]
<!--StartFragment--> <colgroup><col width="65" span="2" style="width:65pt"> </colgroup><tbody>[TR]
[TD="class: xl67, width: 65"]A[/TD]
[TD="class: xl67, width: 65"]B[/TD]
[/TR]
[TR]
[TD="class: xl65"]32[/TD]
[TD="class: xl65"]2[/TD]
[/TR]
[TR]
[TD="class: xl65"]32[/TD]
[TD="class: xl65"]4[/TD]
[/TR]
[TR]
[TD="class: xl65"]32[/TD]
[TD="class: xl65"]8[/TD]
[/TR]
[TR]
[TD="class: xl65"]33[/TD]
[TD="class: xl65"]3[/TD]
[/TR]
[TR]
[TD="class: xl65"]5[/TD]
[TD="class: xl65"]12[/TD]
[/TR]
[TR]
[TD="class: xl65"]5[/TD]
[TD="class: xl65"]9[/TD]
[/TR]
[TR]
[TD="class: xl65"]35[/TD]
[TD="class: xl65"]6[/TD]
[/TR]
[TR]
[TD="class: xl65"]35[/TD]
[TD="class: xl65"]13[/TD]
[/TR]
[TR]
[TD="class: xl65"]35[/TD]
[TD="class: xl65"]16[/TD]
[/TR]
[TR]
[TD="class: xl65"]37[/TD]
[TD="class: xl65"]10[/TD]
[/TR]
[TR]
[TD="class: xl65"]37[/TD]
[TD="class: xl65"]11[/TD]
[/TR]
[TR]
[TD="class: xl65"]37[/TD]
[TD="class: xl65"]13[/TD]
[/TR]
<!--EndFragment--></tbody>[/TABLE]

A and B has different values, IF Both values in A & B in a same is repeated again in other row there should be a conditional formatting by formula which indicates that's its duplicate values entered.


How to do it?
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
You can change in that same values in any row..... All I need to have a check both values in same row is not repeating in the list.... if so there should be an auto format or we can add another column where it shows that values in this row is duplicate.


Thanx
 
Upvote 0
Select Column A & B > Go to Data > Remove duplicates > If your data has headers select My Data has headers > select columns A & B > Click ok
 
Upvote 0
[TABLE="width: 163"]
<colgroup><col><col span="2"></colgroup><tbody>[TR]
[TD]Chk[/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]32[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]32[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]32[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]33[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]5[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]5[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]35[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]32[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]33[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]


See in above sample, Last two rows has the duplicate values from the list. We can set the Duplicate chk in 1st Column.


Thanx
 
Upvote 0
Try this formula in C2

=IFERROR(IF(SUMPRODUCT(--((A2&"@"&B2)=$A$1:A1 & "@" & $B$1:B1)),"Duplicate","Unique"),"Unique")

Drag down
 
Upvote 0
Array formula, You must CTRL+SHIFT+ENTER the formula, not just ENTER,

In C2

=IF(OR($A$1:A1&"@"&$B$1:B1=A2&"@"&B2),"DUPLICATE","UNIQUE")
 
Upvote 0

Forum statistics

Threads
1,224,416
Messages
6,178,504
Members
452,853
Latest member
philipnjk64

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top