Yes, you can. The easiest way to do this is by using the Countifs function, which allows for multiple (range, condition) pairs. An alternative with one range and multiple conditions is to use the regular Sumif function, combined with logical operators (And, Or, Not, Xor).