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

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, privacy policy and cookie policy

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