ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Color Code Duplicates (https://www.excelbanter.com/excel-programming/303875-color-code-duplicates.html)

Lynn[_5_]

Color Code Duplicates
 
I want my macro to do the following:

* Compare values within a selected range

* Wherever there is a duplicate value, change the font
color of the entire row to red

Eg If the value "apple" appeared in both A1 and A10, then
row 1 and 10 would have the red font color applied to them

Any suggestions??

Frank Kabel

Color Code Duplicates
 
Hi
see: http://www.cpearson.com/excel/duplic...tingDuplicates

--
Regards
Frank Kabel
Frankfurt, Germany


Lynn wrote:
I want my macro to do the following:

* Compare values within a selected range

* Wherever there is a duplicate value, change the font
color of the entire row to red

Eg If the value "apple" appeared in both A1 and A10, then
row 1 and 10 would have the red font color applied to them

Any suggestions??


david mcritchie

Color Code Duplicates
 
Hi Lynn,
See Conditional Formatting
http://www.mvps.org/dmcritchie/excel/condfmt.htm

Duplicated Anywhere in Column: Need not be sorted (includes first of duplicates)
Formula is: =COUNTIF($A:$A,$A1)1
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Lynn" wrote in message ...
I want my macro to do the following:

* Compare values within a selected range

* Wherever there is a duplicate value, change the font
color of the entire row to red

Eg If the value "apple" appeared in both A1 and A10, then
row 1 and 10 would have the red font color applied to them

Any suggestions??





All times are GMT +1. The time now is 01:09 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com