Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
=IF(MATCH(A1,$A$1:$H$1,0)=COLUMN(A1),"Unique","Not Unique") should do the job ... HTH Cheers Carim |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Do you mean that :
=IF(COUNTIF($A$1:$H$1,A1)=1,"Unique","Not Unique") does not work ...??? Carim |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
=IF(COUNTIF($A$1:$H$1,A1)=1,"Unique","Not Unique") should be better ... Carim |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
#9
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Glad you have reached your solution...
Thanks for the feedback Carim |
#10
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Linking Groups of cells between workbooks | Excel Discussion (Misc queries) | |||
Identify a range of cells containing dates | Excel Worksheet Functions | |||
How to format cells to show dates as the week-ending date of that | Excel Worksheet Functions | |||
How can I count the number of unique dates in a Pivot Table? | Excel Discussion (Misc queries) | |||
Counting Unique Cells When Spread Sheet is Filtered | Excel Worksheet Functions |