PC Review


Reply
Thread Tools Rate Thread

Conditional Formatting for Duplicates

 
 
=?Utf-8?B?RGFyZW4=?=
Guest
Posts: n/a
 
      8th Jul 2007
I have 4 distinct columns that need to be anlalyzed for duplicate data using
conditional formats. I want to write a function that will look at each value
in the columns and determine if there are duplicates and overlap in times.
Column A has serial number, column B has city name, and column C and column D
have times. I want to find duplicates in column A and also in columns B, C
and D to check for any errors. For example, in the first record column A has
0011, column B has Chicago in it, column C has 10:45 in it, and column D has
11:30 in it. In the second record, column A has 0011, column B has Chicago
in it, column C has 11:00, and column D has 12:00 in it. As you can see, the
values in A are the same, which is not supposed to occur, so I know I would
need a conditional format for that. But there is also duplication in the
city name, and finally, overlap in the times. Is there a formula/conditional
format I can use to look at all these 4 data items and only sort it once to
bring all errors to the top? Thanks.
 
Reply With Quote
 
 
 
 
Trevor Shuttleworth
Guest
Posts: n/a
 
      8th Jul 2007
You could try something like:

=IF(OR(COUNTIF(A:A,A1)>1,COUNTIF(B:B,B1)>1,COUNTIF(C:C,C1)>1,COUNTIF(D,D1)>1),"Duplicate
Value","")

for row 1 and drag down

Regards

Trevor


"Daren" <(E-Mail Removed)> wrote in message
news:6AFDD357-D7CF-4BF7-80E8-(E-Mail Removed)...
>I have 4 distinct columns that need to be anlalyzed for duplicate data
>using
> conditional formats. I want to write a function that will look at each
> value
> in the columns and determine if there are duplicates and overlap in times.
> Column A has serial number, column B has city name, and column C and
> column D
> have times. I want to find duplicates in column A and also in columns B,
> C
> and D to check for any errors. For example, in the first record column A
> has
> 0011, column B has Chicago in it, column C has 10:45 in it, and column D
> has
> 11:30 in it. In the second record, column A has 0011, column B has
> Chicago
> in it, column C has 11:00, and column D has 12:00 in it. As you can see,
> the
> values in A are the same, which is not supposed to occur, so I know I
> would
> need a conditional format for that. But there is also duplication in the
> city name, and finally, overlap in the times. Is there a
> formula/conditional
> format I can use to look at all these 4 data items and only sort it once
> to
> bring all errors to the top? Thanks.



 
Reply With Quote
 
=?Utf-8?B?RGFyZW4=?=
Guest
Posts: n/a
 
      8th Jul 2007
Trevor,
I tried your formula but if picked up duplicates in every cell when I copied
it down for every record. I don't think it's working properly because it
says Duplicate Value even when there is no such duplicate value. Another
suggestion I've heard is to make copies of the worksheet once finished
running macros. I will try that. Thanks for your help.

"Trevor Shuttleworth" wrote:

> You could try something like:
>
> =IF(OR(COUNTIF(A:A,A1)>1,COUNTIF(B:B,B1)>1,COUNTIF(C:C,C1)>1,COUNTIF(D,D1)>1),"Duplicate
> Value","")
>
> for row 1 and drag down
>
> Regards
>
> Trevor
>
>
> "Daren" <(E-Mail Removed)> wrote in message
> news:6AFDD357-D7CF-4BF7-80E8-(E-Mail Removed)...
> >I have 4 distinct columns that need to be anlalyzed for duplicate data
> >using
> > conditional formats. I want to write a function that will look at each
> > value
> > in the columns and determine if there are duplicates and overlap in times.
> > Column A has serial number, column B has city name, and column C and
> > column D
> > have times. I want to find duplicates in column A and also in columns B,
> > C
> > and D to check for any errors. For example, in the first record column A
> > has
> > 0011, column B has Chicago in it, column C has 10:45 in it, and column D
> > has
> > 11:30 in it. In the second record, column A has 0011, column B has
> > Chicago
> > in it, column C has 11:00, and column D has 12:00 in it. As you can see,
> > the
> > values in A are the same, which is not supposed to occur, so I know I
> > would
> > need a conditional format for that. But there is also duplication in the
> > city name, and finally, overlap in the times. Is there a
> > formula/conditional
> > format I can use to look at all these 4 data items and only sort it once
> > to
> > bring all errors to the top? Thanks.

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting Duplicates nl Microsoft Access Reports 0 28th Jul 2009 04:26 PM
Conditional Formatting Duplicates Karen Microsoft Excel Misc 2 18th Aug 2008 10:46 PM
Conditional Formatting for Duplicates =?Utf-8?B?QmVu?= Microsoft Access Form Coding 2 20th Nov 2007 01:49 AM
Duplicates in Conditional Formatting =?Utf-8?B?TXIgUA==?= Microsoft Excel Misc 5 26th Jan 2007 02:42 AM
Conditional Formatting with duplicates hayley Microsoft Excel Worksheet Functions 5 20th Jan 2004 06:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:37 AM.