1

I can easily count on filters from the data like this -->

=count(filter(Data!$A$2:$A, Data!$C$2:$C=$C13,Data!$E$2:$E=$A$5,Data!$J$2:$J>=P$7))

But I want

Data! Data!$E$2:$E=$A$5 Or $A$6 Or $A$7   

... but an Or statement gives an error. What is the way to do this? I can't lose the rest of my filters either.

1 Answer 1

1

Use the + operator, which works just like boolean OR, thanks to 0 being interpreted as boolean false and non-zero as true:

=count(filter(Data!$A$2:$A, (Data!$C$2:$C=$C13) + (Data!$E$2:$E=$A$5) + (Data!$J$2:$J>=P$7)))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.