sumproduct with 0/blank cells

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using sumproduct to count a total number of cases. The formula I have
been using is:

=SUMPRODUCT((report!$Y$4:$Y$400<60)*(report!$Y$4:$Y$400>-60))

I have some cells that have a value of 0, and some are blank. I don't want
to count the cells that are blank, but I do want the cells with zero counted.

How would I do this?

Thanks in advance.
 
Hi!

Try this:

=SUMPRODUCT((ISNUMBER(report!$Y$4:$Y$400))*(report!$Y$4:$Y$400<60)*(report!$Y$4:$Y$400>-60))

Biff
 
=SUMPRODUCT(--(report!$Y$4:$Y$400>-60),--(report!$Y$4:$Y$400<60),--(report!$
Y$4:$Y$400<>""))

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 

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