Hi All,
I need a macro which should identify the duplicate values in a column in excel and either return a message box with total number of duplicates or color the duplicate values in that particular column.
I have attached the sample worksheet.
Hi All,
I need a macro which should identify the duplicate values in a column in excel and either return a message box with total number of duplicates or color the duplicate values in that particular column.
I have attached the sample worksheet.
If you just want to colour the cells then you don't need a macro, you can use conditional formatting with a formula of:
=COUNTIF(A:A,A1)>1
You can actually use Data validation to prevent duplicates.
Please Login or Register to view this content.
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
Please Login or Register to view this content.
Last edited by royUK; 04-08-2012 at 03:28 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks