Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Identifying unique dates in a range 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!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 427
Default Identifying unique dates in a range of cells containing dates...

Here's how to do the first part:
=IF(COUNTIF(B1:H1,A1)=0,"Unique", "Not unique")

There's a logic problem in the second part of your question: "to tell
me if the date in cell B1 is unique in comparison to all the other
dates in the range A1 through H1". B1 is included in that range. Or
do you need to check if B1 is repeated in A1 and C1:H1?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Identifying unique dates in a range of cells containing dates...

Take a look at =countif() in excel's help.

=countif(a1:h1,a1)
would return the number of cells that match the value in A1

=if(countif(a1:h1,a1)=1,"Unique","Duplicates somewhere")



cdavidson wrote:

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!


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
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!



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 510
Default Identifying unique dates in a range of cells containing dates...

Do you mean that :

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


does not work ...???


Carim

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Identify a range of cells containing dates RJSohn Excel Worksheet Functions 2 August 24th 06 02:43 AM
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM
Display first, second, etc Nonblank Cells in a Range Jeremy N. Excel Worksheet Functions 12 September 25th 05 01:47 PM
Select Range of Cells programmingrookie Excel Discussion (Misc queries) 2 August 11th 05 07:13 PM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 2 May 2nd 05 08:53 AM


All times are GMT +1. The time now is 10:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"