Ed, you are in luck! you don't need any COUNTIF()'s or any other functions.
Use a helper column, say column Z, and enter in Z1:
=(A1="rx")*(B1="oem")
and copy down the column.
Finally, addup the ones in column Z
( the expressions in parens are boolean and the multiply represents the AND
--
Gary''s Student
"Ed Gregory" wrote:
I have a range a1:a150 that can contain"rx". I have a second range b1:b150
that can contain "oem"
I want to count the occurrences when a1:a150 contains "rx" AND b1:b150
contains "oem". The key is AND.
Right now I use countif to return number of number occurrences for each
range, but I need a third count and that is when both are true return a
count.
Thanks.
|