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

Similar Threads

Sumproduct not working 5
SUMIF with criteria "<>" & "=" 4
If and Countif 2
two condition formula 1
If with countif or counta 3
Excel function - countif 2
Countif with date range criteria 5
countif 3

Top