Conditional Occurrance Count

  • Thread starter Thread starter Ian Westwell
  • Start date Start date
I

Ian Westwell

Does anyone know how to count from a table, how many times
a cell in column A = "X" when a cell in Column B = "Y".
Countif allows you to do it for one column but will not
allow you to apply a condition. Unless anyone knows
different.
 
Ian,

=SUMPRODUCT((A1:A100="X")*(B1:B100="Y"))

I am afraid you cannot use a whole column as you can with COUNTIF, you must
specify the limits of the range.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
Back
Top