ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   highlighting duplicates (https://www.excelbanter.com/excel-worksheet-functions/68811-highlighting-duplicates.html)

alex

highlighting duplicates
 
I want to write a formula that highlights duplicate cells within a
column.
I know that I can use conditional formatting with a named range using
COUNTIF.
I continually paste data into this column, however, and find using a
named range to be difficult. Any suggestions on using an actual cell
range, e.g., A1:A500?


Bob Phillips

highlighting duplicates
 
=COUNTIF($A$1:$A$500,A1)1

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"alex" wrote in message
oups.com...
I want to write a formula that highlights duplicate cells within a
column.
I know that I can use conditional formatting with a named range using
COUNTIF.
I continually paste data into this column, however, and find using a
named range to be difficult. Any suggestions on using an actual cell
range, e.g., A1:A500?




alex

highlighting duplicates
 
thanks bob. it worked. i thought i tried this formula; i guess not
exactly!



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

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