Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Matt
 
Posts: n/a
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default 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.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default 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.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Matt
 
Posts: n/a
Default 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.




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default 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.






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how do i protect cells in a shared worksheet Debi Excel Discussion (Misc queries) 3 September 30th 05 11:15 PM
Conditional formatting...cont. from 9/25 Guenzak Excel Discussion (Misc queries) 4 September 26th 05 10:55 PM
SUMPRODUCT TO CALCULATE VISIBLE CELLS ONLY Lisa Excel Worksheet Functions 4 January 11th 05 12:58 PM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 12:57 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM


All times are GMT +1. The time now is 01:56 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"