View Single Post
  #2  
Old February 23rd, 2009, 11:10 PM posted to microsoft.public.excel.newusers
Shane Devenshire[_3_]
external usenet poster
 
Posts: 3,333
Default Find and Highlight duplicates in 5 non-adjacent columns

Hi,

Do the duplicates need to be on the same row, what in the other columns, are
they number which could be the same as those in the 5 original columns?

The easiest way to do this would be a conditional formatting formula of:

=COUNTIF($B$1:$J$9,B1)1

But this might not work depending on what was in the other columns. If the
other columns don't contain numbers than

=AND(COUNTIF($B$1:$J$9,B1)1,ISNUMBER(B1))

If that doesn't work because of the content of the intermediate columns you
can use

=AND(SUM(($B$1:$B$9=B1)+($D$1:$D$9=B1)+($F$1:$F$9= B1)+($H$1:$H$9=B1)+($J$1:$J$9=B1))1,ISNUMBER(B1))

In this case you need to make sure that the active cell is B1 when you put
this in the conditional formatting. And you only want to select your 5
columns not the other ones.


--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"GVPro" wrote:

I have series of serial nnumbers in five non-adjacent columns.
Ineed to find, and, if possible, highlight them.
I am using Excel 2003 at work and 2007 at home.

EX:
A B C D E F G H
I J

1 31686 ....... 21213 ....... 37801 ....... 55555 ....... 78613
.......
2 37814 ....... 80081 ....... 67766 ....... 54455 ....... 84400
.......
3 55555 ....... 60550 ....... 41223 ....... 10002 ....... 27177
.......
4 43477 ....... 77772 ....... 43434 ....... 94867 ....... 29525
.......
5 69362 ....... 24543 ....... 55555 ....... 99323 ....... 63122
.......