View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
Earl Kiosterud Earl Kiosterud is offline
external usenet poster
 
Posts: 611
Default Identifying unique dates in a range of cells containing dates...

C,

This formula in I1 will yield TRUE or FALSE if depending on whethere there's
a dup. Copy it to the right with the fill handle to P1. The cell with the
dup will also yield TRUE. These cells can be copied down into succeeding
rows, but won't work in other columns without modification.
=COUNTIF($A$1:$H$1,A1)1

You can make it say something like "DUP" with something like this. Same
deal with any dups.
=IF(COUNTIF($A1:$H1,A1)1,"DUP","")

You might find it more useful to identify the dups in situ with conditional
formatting. That will make the dups change color, go bold, etc. You won't
need anything in I1 to P1 for this solution. To do that,

Select A1:H1. A1 should be the active (white) cell. Press Enter until it is
if necessary, while the cells are selected.
Format - Conditional formatting.
In the dropdown, select "Formula is."
Paste this formula in (from here): =COUNTIF($A1:$H1,A1)1
Click "Format" and choose some formatting for how you want the dups to look.

It's possible to have only a dup, but not its original, be identified, but
it's a little trickier. Post back if you're interested.
--
Earl Kiosterud
www.smokeylake.com

-----------------------------------------------------------------------
"cdavidson" wrote in message
...
I have dates entered in cells A1 through H1, some of which are duplicate
dates and others which are unique dates.

What I need is a formula I can write in cell I1 which will tell me if the
date in cell A1 is unique in comparison to all the other dates in the
range
A1 through H1.

I also need to extend this formula across cells J1 through P1 to repeat
the
analysis for each of the respective dates in the data range. (i.e. I need
the formula in cell J1 to tell me if the date in cell B1 is unique in
comparison to all the other dates in the range A1 through H1).

Thanks for the assistance in advance!