Formula problem

M

Mike

can anyone tell me what is wrong with this?

=SUM(IF(K2:K3790 = "Tx",IF(O2:O3790 ="Yes",1,0),0))

Worked fine yesterday, counted the number of times K=TX and O = yes
 
A

aristotle

Hi,

Maybe should be =SUMPRODUCT(--(K2:K3790="Trx"),--(02:O3790="Yes"))?

Cheers,
A
 
A

Ashish Mathur

Hi,

This is an aray formula so you should do a Ctrl+Shift+Enter. If there is
still a problem, try the following (Ctrl+Shift+Enter):

=SUM(IF((K2:K3790 = "Tx")*(O2:O3790 ="Yes"),1,0))

Regards,
 
Top