Countif for 2 columns

E

earlfj

I need a function to count nonblank cells in column A if corresponding cells
in column B are not blank. Please help. I have tried
=countif(A2:A23,"*"+B2:B23,"*") but doesn't work
 
T

T. Valko

Try this:

=SUMPRODUCT(--(A2:A23<>""),--(B2:B23<>""))

<>"" means: not equal to blank
 

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