ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   sumproduct with 0/blank cells (https://www.excelbanter.com/excel-worksheet-functions/60496-sumproduct-0-blank-cells.html)

Matt

sumproduct with 0/blank cells
 
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.

Biff

sumproduct with 0/blank cells
 
Hi!

Try this:

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

Biff

"Matt" wrote in message
...
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.




Bob Phillips

sumproduct with 0/blank cells
 
=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)

"Matt" wrote in message
...
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.




Matt

sumproduct with 0/blank cells
 
Thanks! This worked like I wanted it to.

I really appreciate it.

"Biff" wrote:

Hi!

Try this:

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

Biff

"Matt" wrote in message
...
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.





Biff

sumproduct with 0/blank cells
 
You're welcome. Thanks for the feedback!

Biff

"Matt" wrote in message
...
Thanks! This worked like I wanted it to.

I really appreciate it.

"Biff" wrote:

Hi!

Try this:

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

Biff

"Matt" wrote in message
...
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.








All times are GMT +1. The time now is 09:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com