Conditional Counting of Arrays

R

rbrychckn

I have a worksheet that has the following structure:

A B C


In Column B is a unique ID for the row (4-digit number). In C i
either an "X" or a blank as a yes/no column.

I want to count the number of X's in Column C only if they have an I
in Column B. I've used the COUNTIF function with an IF statement bu
it's giving me #NUM/#VALUE errors. Any help would be great.

{=COUNTIF((IF((B3:B32<>0),(C3:C32))),"X")
 
F

Frank Kabel

Hi
try
=SUMPRODUCT((B3:B32<>"")*(C3:C32="X"))

or
=SUMPRODUCT(--(B3:B32<>""),--(C3:C32="X"))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top