Excel 'conditional formatting' formula issue with multiple condition ranges -


original formula works perfectly, using countifs, when 2 ranges i'm comparing same exact shape. (#rows & #columns)

=countifs('g2-2'!$bb$1:$bb$15,$h101, 'g2-2'!$bc$1:$bc$15,-1)  

but moment try 1 range larger, $be$1:$bo$15, doesn't work!

=countifs('g2-2'!$be$1:$bo$15,$s101, 'g2-2'!$bc$1:$bc$15,-1)  

the idea on particular row (i.e. column z in example) formula resides on 'data' sheet; if col bc=-1 sheet 'g2-2' , col s sheet 'data' (=$s101) contains value (an area code) within range ('g2-2'!$be$1:$bo$15) on sheet 'g2-2', seen below, statement true , formatting applied.

as example: formula in col z on 'data' sheet , in row tx state , 214 area code in col s seen below. , since corresponding row on sheet 'g2-2' col bc=-1 sheet 'g2-2' , value '214' contained in sheet 'g2-2' within range ('g2-2'!$be$1:$bo$15) seen below, statement true , formatting applied.



sheet: 'data'

col h        col s        col t          col z

state  area code  state group   sheet g2-2

tx           214        group a        (-1)blacked out

tx           214        group a        (-1)blacked out



sheet: 'g2-2'

           col bb col bc col col bf

row 7    tx      -1         214       469


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -