excel - Can You Embed an AND Statement Within an OR Statement? -


alright, have idea, not sure if there way accomplish this. starting equation:

=if(or(arrayformula(sum(countif(b7:o7,{"i","a","x","r","k","e","al","ffsl","adm*"})))=10),"80 hours","error")

i embed , statement within same if statement, if @ possible. instance, equation above checks possible 8 hours shifts. if there 10 of them employee schedule work 80 hours. next need check combination of 4 ten hour shifts , 5 8 hour shifts. need continue checking other possible combinations employee 80 hours.

i know equation below not work, trying similar to.

=if(or(arrayformula(sum(countif(b7:o7,{"i","a","x","r","k","e","al","ffsl","adm*"})))=10,(arrayformula(sum(countif(b7:o7,{"r-10","i-10","x-10","a-10"})))=4,and(arrayformula(sum(countif(b7:o7,{"i","a","x","r","k","e","al","ffsl","adm*"})))=5),"80 hours","error")

essentially trying embed , statement within original or statement. not sure if allowed. saying this:

if 1 or (2 , 3) or (3 , 4), etc...

test schedule

shouldn't this?

=if(or(arrayformula(sum(countif(b7:o7,{"i","a","x","r","k","e","al","ffsl","adm*"})))=10, and(arrayformula(sum(countif(b7:o7,{"r-10","i-10","x-10","a-10"})))=4, arrayformula(sum(countif(b7:o7,"i","a","x","r","k","e","al","ffsl","adm*"})))=5)) ,"80 hours","error")


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

ios - Possible to get UIButton sizeThatFits to work? -