Duplicates to cover all data in row

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
572
Office Version
  1. 2016
Good afternoon

I have data in columns A, B, C, D, E and G that I am after a formula (Conditional format?) - that will look at all rows in the sheet (say from Row 2 to Row 300) that will highlight any rows where the data is EXACTLY the same taking into account all cells in that row.. (See below, this example should be correct!! :)

Either a formula/conditional format should suffice. An alternative might be a macro that does it and auto deletes, but the former would be sufficient - thanks!)

ABCDEG
IT51152625359656595656AAAAAAA1Grimsby
IT51152625359656595656AAAAAAA1Grimsby
IT51152625359656595656BBBBBBBB1Chesterfield
IT51152625359891575587BBBBBBBB1Lincoln
IT51152625359891575587BBBBBBBB2Salisbury
IT51152625359891575587BBBBBBBB 2Salisbury
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Will they always be sorted, so that the duplicates always appear in succession, as shown in your example?

If so, then you can just use a Conditional Formatting formula like (for row 2):
VBA Code:
=AND(A2=A1,B2=B1,C2=C1,D2=D1,E2=E1,G2=G1)

Note that if you want to delete, a macro is not required.
Just use the built-in "Remove Duplicates" functionality.
 
Upvote 0
Solution

Forum statistics

Threads
1,207,285
Messages
6,077,529
Members
446,288
Latest member
lihong3210

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