Need help finding duplicates based on multiple criteria

Zaragoza

New Member
Joined
Jul 11, 2014
Messages
20
I have a spreadsheet with a fixed number of columns and a variable number of rows. Data is contiguous in Column B and is sorted by Serial Number.

[TABLE="width: 760"]
<colgroup><col span="2"><col span="2"><col span="2"><col></colgroup><tbody>[TR]
[TD]Renewal Type[/TD]
[TD] [/TD]
[TD]Serial Number[/TD]
[TD] [/TD]
[TD]Row Type[/TD]
[TD] [/TD]
[TD]Controller Service End Date[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]70000000000[/TD]
[TD] [/TD]
[TD]SYSTEM[/TD]
[TD] [/TD]
[TD="align: right"]10/31/2014[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]70000000000[/TD]
[TD] [/TD]
[TD]SOFTWARE[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Software Only[/TD]
[TD] [/TD]
[TD="align: right"]70000000000[/TD]
[TD] [/TD]
[TD]STORAGE[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Shelf Only[/TD]
[TD] [/TD]
[TD="align: right"]70000000001[/TD]
[TD] [/TD]
[TD]SYSTEM[/TD]
[TD] [/TD]
[TD="align: right"]10/31/2014[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]70000000001[/TD]
[TD] [/TD]
[TD]SOFTWARE[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]70000000001[/TD]
[TD] [/TD]
[TD]STORAGE[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Software Only[/TD]
[TD] [/TD]
[TD="align: right"]70000000001[/TD]
[TD] [/TD]
[TD]SYSTEM[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]70000000002[/TD]
[TD] [/TD]
[TD]SYSTEM[/TD]
[TD] [/TD]
[TD="align: right"]10/31/2014[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]70000000002[/TD]
[TD] [/TD]
[TD]SOFTWARE[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]70000000002[/TD]
[TD] [/TD]
[TD]STORAGE[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD="align: right"]70000000002[/TD]
[TD] [/TD]
[TD]SYSTEM[/TD]
[TD] [/TD]
[TD="align: right"]10/31/2017[/TD]
[/TR]
</tbody>[/TABLE]

I need to mark and then remove duplicates and it has to be done in VBA because the scrubbed data needs to be uploaded to a web application that makes it easier for a user to write to the original data set.

The challenge is that duplicates should only be identified when the values on all 4 rows are duplicated. (For instance serial 700000000001 can have multiple STORAGE lines with different end dates...or Serial 70000000001 can have more than one entry for the same system and the only difference is the Renewal Type) So to simplify. I need to mark each row that is duplicated across all 4 columns.

I'd appreciate any help at all...even if its just a nudge in the right direction. Thanks.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Are your entries grouped at all, see example.

Which of the following two examples would be the result you wanted?


Excel 2010
ABCDE
1Renewal TypeSerial NumberRow TypeController Service End Date
2Shelf Only70000000001SYSTEM10/31/2014
370000000001SOFTWARE
470000000001STORAGE
5Shelf Only70000000001SYSTEM10/31/2014Delete
670000000001SOFTWAREDelete
770000000001STORAGEDelete
8
9Renewal TypeSerial NumberRow TypeController Service End Date
10Shelf Only70000000001SYSTEM10/31/2014
1170000000001SOFTWARE
1270000000001STORAGE
13Shelf Only70000000001SYSTEM10/31/2014Delete
1470000000001SOFTWARE
1570000000001STORAGE
Sheet2
 
Upvote 0
Based on the data in your table the second option is what i'm looking for and No the data is not grouped. Its a long list in which only the serial number column is contiguous.
 
Upvote 0

Forum statistics

Threads
1,223,276
Messages
6,171,140
Members
452,381
Latest member
Nova88

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