vba - Highlight values based on a range of values. Excel -


in excel, in range of cells (say a1 a100) highlight values contain of values in specified range (say a101 150). duplicates among a1 a100 should not highlighted. has solution?

give try. select b2:b15893 > go conditional formatting 'use formula determine cells format' > enter formula =and(countif($b$2:$b$15893,b2)>1,countif($b$15895:$b$15924,b2)>0) > format yellow fill > click ok.

the first logic test in and() function tests if value duplicate in range $b$2:$b$15893 , second test if value exists in range of values @ bottom. if both logic tests true value highlighted.

here screenshot of smaller example. hope helps!

cruter.com conditional formatting countif() example


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -