adding two fields if one is blank.

A

Actaeon

Howdy!

Problem Line:
=COUNTIF(NAME!K:K,"JOE")+COUNTIF(NAME!L:L,"SMITH")

This line adds up to many cells for me, so to limit it further, I need
to count those lines that match the above limits but do NOT have any
data in M:M.

Failing Line:
=COUNTIF(NAME!K:K,"JOE")+COUNTIF(NAME!L:L,"SMITH")+COUNTIF(NAME!M:M,
"")

Doesn't work...just counts all the blank lines

Thank you for any help you can offer!
 
P

Peo Sjoblom

One way

=SUMPRODUCT((NAME!K1:K1000="JOE")*(NAME!L1:L1000="SMITH")*(NAME!M1:M1000="")
)

note that you cannot use the whole column K:K so instead try to use
something that is closer to your range since I doubt you have >65000 names
 

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