Duplication??

WILFY06

Board Regular
Joined
Oct 13, 2006
Messages
99
Hi All,

i would like to check a column for duplicates, its a very large amount of data roughly over 5000 names that i have had to enter and want to make sure i've not done any twice, so i would like a macro button that searches through column C and colours duplicates in RED

Kind Regards,
David
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Talking of duplication, you seem to have entered this thread 4 times at least.

Conditional formatting will do what you want, with a condition formula like:
Code:
=COUNTIF($A$1:$A$5000,A1)>1
 
Upvote 0
Sorry about duplicate posting! Browser appeared to have stopped so tried pressing button a few times, obviouslly 4 times, sorry everyone!! thats fo hint cheers

Kind Regards,
David
 
Upvote 0
Hi i have tried this Condition formula and it doesn't work

=COUNTIF($C$1:$C$5000,C1)>1

Could it be that i'm trying to check names rather than numbers?
All i'm trying to do is shade in duplicate names or people with same surname and initials?

Any help would be appreciated

Kind Regards,
David
 
Upvote 0
Could it be that i'm trying to check names rather than numbers?

that has nothing to do with it ... it works fine for me.

So, tell me the exact steps you take when applying the Conditional Formatting, and I'll see if I can spot the mistake.
 
Upvote 0
i select the C Column, format, conditional formating.

Set it as formula is, then the formula you supplied, modded to C column and then choose formating shade red with bold white text.

Get odd results shading cells that aren't duplicates, or not shading them at all!!
 
Upvote 0
When you select column C, which cell is the active cell? ( this isn't necessarily C1 )?
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,691
Members
448,978
Latest member
rrauni

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