ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Identifying unique dates in a row of cells containing dates... (https://www.excelbanter.com/excel-discussion-misc-queries/114256-identifying-unique-dates-row-cells-containing-dates.html)

cdavidson

Identifying unique dates in a row of cells containing dates...
 
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!

Carim

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

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

should do the job ...

HTH
Cheers
Carim


cdavidson

Identifying unique dates in a row of cells containing dates...
 
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?


"Carim" wrote:

Hi,

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

should do the job ...

HTH
Cheers
Carim



ICE

Identifying unique dates in a row of cells containing dates...
 
Try this one. Hope it works.

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

"cdavidson" wrote:

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?


"Carim" wrote:

Hi,

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

should do the job ...

HTH
Cheers
Carim



Carim

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

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

should be better ...

Carim


cdavidson

Identifying unique dates in a row of cells containing dates...
 
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?


"ice" wrote:

Try this one. Hope it works.

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

"cdavidson" wrote:

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?


"Carim" wrote:

Hi,

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

should do the job ...

HTH
Cheers
Carim



Carim

Identifying unique dates in a row of cells containing dates...
 
Do you mean that :

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

does not work ...???


Carim


cdavidson

Identifying unique dates in a row of cells containing dates...
 
Works perfect when I take out the first "$" in the COUNTIF section.

Thanks!


"Carim" wrote:

Hi,

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

should be better ...

Carim



Carim

Identifying unique dates in a row of cells containing dates...
 
Glad you have reached your solution...

Thanks for the feedback

Carim


Dallman Ross

Identifying unique dates in a row of cells containing dates...
 
In . com, Carim
spake thusly:

=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")

--
dman


All times are GMT +1. The time now is 09:30 PM.

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