Identifying unique dates in a row of cells containing dates...

G

Guest

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!
 
C

Carim

Hi,

=IF(MATCH(A1,$A$1:$H$1,0)=COLUMN(A1),"Unique","Not Unique")

should do the job ...

HTH
Cheers
Carim
 
G

Guest

Hi Carim:

The formula doesn't seem to work the way I need it to. As a test, I made
the dates in cells A1 and B1 the same. When I did that, the formula in cell
I1 still claimed the date in cell A1 was "Unique".

Any thoughts?
 
G

Guest

Try this one. Hope it works.

=IF(MATCH(A1;$A$1:$H$1;0)=COLUMN($A$1);"Not Unique";"Unique")
 
G

Guest

Still doesn't work. After reading up on the MATCH and COLUMN functions, I'm
wondering if a COUNTIF forumla would be a better approach? (i.e. if COUNTIF
only returns a 1, then it's unique, otherwise it's duplicated).

Does this make any sense?
 
C

Carim

Do you mean that :

=IF(COUNTIF($A$1:$H$1,A1)=1,"Unique","Not Unique")

does not work ...???


Carim
 
D

Dallman Ross

Carim said:
=IF(MATCH(A1,$A$1:$H$1,0)=COLUMN(A1),"Unique","Not Unique")

should do the job ...

Don't you have the logic reversed there? Or am I confused?
Would have thought you meant:

=IF(MATCH(A1,$A$1:$H$1,0)=COLUMN(A1),"Not Unique","Unique")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top