ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   =SUMPRODUCT formula is counting the blank cells as well as zero's (https://www.excelbanter.com/excel-worksheet-functions/77773-%3Dsumproduct-formula-counting-blank-cells-well-zeros.html)

JR

=SUMPRODUCT formula is counting the blank cells as well as zero's
 
Hello,

I am using the following to count a column of zeros in a worksheet if the
zeros occur during specific times.

=SUMPRODUCT(--(pathfinder_dump!G1:G10000=TIME(1,0,0)),--(pathfinder_dump!G1:G10000<=TIME(1,29,59)),--(pathfinder_dump!I1:I10000=0))

The trouble is that the formula is counting the blank cells as well. Can
someone tell me how to modify so the formula only counts the zeros?

Thanks



=SUMPRODUCT formula is counting the blank cells as well as zero's
 
Hi

You could add a NOT(ISBLANK()) to the end:
=SUMPRODUCT(--(pathfinder_dump!G1:G10000=TIME(1,0,0)),--(pathfinder_dump!G1:G10000<=TIME(1,29,59)),--(pathfinder_dump!I1:I10000=0),--(NOT(ISBLANK(pathfinder_dump!I1:I10000))))


Hope this helps.
Andy.


"JR" wrote in message
...
Hello,

I am using the following to count a column of zero's in a worksheet if the
zero's occur during specific times.

=SUMPRODUCT(--(pathfinder_dump!G1:G10000=TIME(1,0,0)),--(pathfinder_dump!G1:G10000<=TIME(1,29,59)),--(pathfinder_dump!I1:I10000=0))

The trouble is that the formula is counting the blank cells as well. Can
someone tell me how to modify so the formula only counts the zero's?

Thanks





All times are GMT +1. The time now is 05:42 AM.

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