Counting cell depending on certain crieteria

S

starguy

I want to count nonblank cells in A5:A50 if corresponding cells in
B5:B50 are blank.
 
A

Arvi Laanemets

And I forget to preceede the second comparision with -- . So the correct
formula must be
=SUMPRODUCT(--($A$5:$A$50<>""),--($B$5:$B$50=""))
 
Top