formula - How to use array and OR and AND in google spread sheet -


i've using formula in google sheet answer. somewhere logic wrong please suggest. logic applied seams wrong

=arrayformula(sum(if(or(t:t="a",u:u="y"),1,0)))  b   x   y   x   y b   x 

answer should 2. pls wrong ?

there ambiguity in question. in formula using, there or. either first column should have 'a' or second 1 should have 'y'. then, shouldn't answer 3?

the formula looking in case is:

=arrayformula(sum(if(add(if(a:a="a",true,false),if(b:b="y",true,false))>0,1,0))) 

but if looking and, formula is:

=arrayformula(sum(if(multiply(if(a:a="a",true,false),if(b:b="y",true,false))>0,1,0))) 

the basic concept here in array expression, simple boolean should replaced add or multiply depending on if or or and


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -