Nested Countif?

  • Thread starter Thread starter Dan Shigley
  • Start date Start date
D

Dan Shigley

Would anyone know how I would count a range with a
qualifying range. For instance, if a2:a6 = "Y" then
countif(b2:b6,"X"). Any assistance would be greatly
appreciated.
 
Dan

One way:

=SUMPRODUCT((A2:A6="Y")*(B2:B6="X"))

--
Best Regards
Leo Heuser
MVP Excel

Followup to newsgroup only please.
 
Back
Top