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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sloth
 
Posts: n/a
Default =SUMPRODUCT formula is counting the blank cells as well as zero's

add this to your formula
1-ISBLANK(C1:C6)

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

"JR" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sloth
 
Posts: n/a
Default =SUMPRODUCT formula is counting the blank cells as well as zero's

sorry, I didn't change the range in my last post.

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

"JR" wrote:

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

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 keep cells blank until the formula is used? Ellen Excel Discussion (Misc queries) 4 February 3rd 06 12:44 PM
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
formula to count cells not blanK pmarques Excel Worksheet Functions 4 August 3rd 05 01:44 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM


All times are GMT +1. The time now is 05:30 PM.

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

About Us

"It's about Microsoft Excel"