Formula help

  • Thread starter Thread starter Bert
  • Start date Start date
B

Bert

Column A may or may not have an "X" in it to represent
whether or not someone attended training (x means they
did).
Column B lists whether they are an doctor, secretary,
assistant, etc....

I want a formula at the bottom that will count the number
of people that are doctors and that attended training. I
was able to get the count of doctors, but I am having
trouble including the additional field that If they are a
doctor AND they have an X in column A count that. Thanks
 
Hi
try
=SUMPRODUCT((A1:A1000="X")*(B1:B1000="Doctor"))

or
=SUMPRODUCT(--(A1:A1000="X"),--(B1:B1000="Doctor"))
 
The easiest way I know to do this is to add 2 columns.
Use the AND function in the first (I believe you have to
put "doctor" in quote marks), and then use the IF function
in the second , IF(true, 1, ""), and there will only
appear "1" in the cells corresponding to both conditions.
I do not know of a one-step method.

Good luck.
 
Back
Top