Count duplicate data row

bdtran

New Member
Joined
Oct 11, 2018
Messages
33
Hello All,

I really need your help with a formula the check the duplicate data row of the specific range as with the example below.

In column A, I need to check only those rows with the "Data-A" that have the exactly the same data information in B1:M1 range. For example in the table below A5 has exactly the same data information as of A1 row in the B1:M1 range.

The result in the P1 is what I need to know of how many duplicate rows have been inserted. That is what all I need to know.

Also it is not necessary but is there a way to identify the duplicate row using formula with either row number or highlight the row or any other ways so that I can verify and delete the duplicate row.

Thanks much for any help.
*BDT




ABCDEFGHIJKLMNOPQ
1Data-A
1010011A0A11Duplicate Count1
2Data-B
3Data-A000AAA11101A
4Data-E
5Data-A1010011A0A11
6Data-A11111A00A111
7Data-A0101010101AA

<tbody>
</tbody>
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
it's probably not the cleanest solution but works

place this formula in cell N1 as an array formula (with Ctrl+Shift+Enter instead of just Enter)

Code:
=IF(SUMPRODUCT(--($A$1:$A$7="Data-A"),--(MMULT(--($B$1:$M$7=B1:M1),TRANSPOSE(COLUMN(B1:M1)^0))=12))>1,"Duplicate","")

adjust range as needed

then copy N1 to the entire column

every row where appears Duplicate has at least one duplicate

then you can place a countif in P1 if you want
 
Last edited:
Upvote 0
Thank you Dfsobral.

I tested it and it works. However I just realized that since I have over 20k+ rows which could cause of slowness.

So instead of copying N1 to the entire column to tell which row is duplicated, I just wanted to get the one simple result in P1 indicates that there is a duplication in entire range.

Thanks much for your feedback.
*BDT
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
Members
449,088
Latest member
RandomExceller01

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