LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RS RS is offline
external usenet poster
 
Posts: 113
Default Highlight duplicate entries matching 2 criteria in another workshe

In Excel 2000, Im told that I cant reference other worksheets or workbooks
when using conditional formatting. Looking through these forums, I put
together a formula that highlights cells if there are duplicate listings of
companies found in column S (row 2 has headers and the companies are listed
in cells S3:S261. The conditional format in this Rates.xls file for S3,
for example, is:
Formula Is =COUNTIF(S:S,S3)1.

I want to use a similar conditional format to highlight cells in column G of
my other workbook (Test Rate) whereby I find pay rates from the Rates file
based on TWO criteria: column E (company name) that matches values in column
S of the Rates file; and column F, which concatenates columns B (Type), C
(Program), & D (Model) with /s in the Test Rate file to match the values
found in column K of the Rates file. Since Im told that I cant reference
other worksheets or workbooks in the conditional format, Ive created a
formula in column L which basically checks to see if BOTH conditions are met
and returns either True or False. The formula in cell L8 is:
=AND(COUNTIF('[Rates.xls]Sheet1'!$S:$S,$E8)1,COUNTIF('[Rates.xls]Sheet1'!$K:$K,$F8)1)

My problem is that this formula is evaluating each condition independently
and I need it to evaluate BOTH conditions TOGETHER. Currently this formula
is incorrectly returning TRUE for an entry that should be FALSE because
although there is 1 company listing in the Rates file (this evaluates as
TRUE), AND there is 1 listing of the value in F8 (Networks/Res/Home; which
also evaluates as TRUE), the combination of both items together results in
only 1 value for each combination.

In other words, even though there are 2 listings for Company A, the values
in column F are different for each of the 2 listings. Column F of one of
Company As listings is Networks/Res/School (of which there are 58 listings)
and in the other of Company As listings, column F is Networks/Res/Home (of
which there are 70 listings). Because the formula is currently evaluating
each condition independently, the 2nd half of the formula is returning TRUE
because there are multiple listings for this half, but evaluating BOTH
conditions TOGETHER, the formula should return FALSE. How do I correct my
formula?
 
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
How to highlight duplicate entries? Kimbor Excel Discussion (Misc queries) 3 August 15th 06 08:39 PM
Highlight repeat entries BER Excel Discussion (Misc queries) 5 July 17th 06 01:14 PM
Highlight Duplicate on entry jk Setting up and Configuration of Excel 2 July 15th 06 10:46 AM
highlight duplicate entries Baylee Excel Discussion (Misc queries) 2 January 13th 06 07:26 PM
highlight duplicate numbers css Excel Discussion (Misc queries) 8 September 16th 05 09:18 AM


All times are GMT +1. The time now is 07:23 AM.

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

About Us

"It's about Microsoft Excel"