View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
excelent excelent is offline
external usenet poster
 
Posts: 695
Default Comparing values in two columns

Put this in B1 as cond.format and copy format down
=IF(COUNTIF($A$1:$A$100,B1)=1,B1:$B$100,"")


"P.hamsa" skrev:

Hi,
I have two columns (Col A and Col B) having the employee numbers.
I want to compare the numbers in both the columns and highlight the
duplicate entries in Col A. Can you help?

Regards,
P Hamsa