excel function to combine two countif functions
=COUNTIF(A2:A5,A3)+COUNTIF(A2:A5,A2) Counts the number with oranges (using criterion in A3) and apples (using criterion in A2) in cells A2 through A5. The result is 3. This formula uses two COUNTIF expressions to specify multiple criteria, one criteria per expression.