Countif for 2 columns

  • Thread starter Thread starter earlfj
  • Start date Start date
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
 
Try this:

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

<>"" means: not equal to blank
 
Thank you, Thank you. Works perfect. I have spent hours trying to figure this
out.
 

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

Similar Threads


Back
Top