Excel 2 column comparison: duplicate in one column, but unique as pair -


i'm trying compare values across 2 columns (product , location) in excel highlight duplicates, can't figure out logical test. i'm looking rows match 3 criteria:

  1. product value duplicate
  2. product value not blank
  3. duplicate 'product' values occur different 'location' values

(products same value in same location assumed distinct value don't have, products same name @ different locations may duplicate). edit: want formula evaluate true if same product occurs in more 1 location.

i can figure out first 2 conditions themselves, can't figure out how incorporate third. i've sorted table duplicate values should appear next each other, there many check eye.

i'm using logical test conditional formatting using first 2 criteria. 'product' occurs in column c, 'location' occurs in column i.

=and(c1<>"",countif($c:$c,c1)>1) 

given criteria, think need countifs function 3rd criteria....

your final formula follows:

=and($c1<>"",countif($c:$c,$c1)>1, countifs($c:$c,$c1,$i:$i,"<>" & $i1)>0) 

in effect, third criteria saying count if product matches c1 , location not equal i1

hope trick!


note:

the more think it, more i'm pretty sure do not need second criteria... i've been trying think of example second criteria affect result of final outcome, can't find one....

just consider....


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -