#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default Ignore blank cells

How do I get this formula:
=SUMPRODUCT(--(D$5:D$31-I$5:I$31<60))

To ignore empty cells? It's currently tallying all the empty ones contained
in the ranges.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Ignore blank cells

=SUMPRODUCT(--($D$5:$D$31<""),--($I$5:$I$31<""),--((D$5:D$31-I$5:I$31)<60))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Angyl" wrote in message
...
How do I get this formula:
=SUMPRODUCT(--(D$5:D$31-I$5:I$31<60))

To ignore empty cells? It's currently tallying all the empty ones
contained
in the ranges.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default Ignore blank cells

How do I get this formula:
=SUMPRODUCT(--(D$5:D$31-I$5:I$31<60))

To ignore empty cells? It's currently tallying all the empty ones
contained in the ranges.


Something like this maybe...

=SUMPRODUCT(--(D$5:D$31-I$5:I$31<60)*(D$5:D$31<"")*(I$5:I$31<""))

where you include additional logical expressions to filter those conditions.

Rick

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default Ignore blank cells

Beautiful, thanks Bob.

"Bob Phillips" wrote:

=SUMPRODUCT(--($D$5:$D$31<""),--($I$5:$I$31<""),--((D$5:D$31-I$5:I$31)<60))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Angyl" wrote in message
...
How do I get this formula:
=SUMPRODUCT(--(D$5:D$31-I$5:I$31<60))

To ignore empty cells? It's currently tallying all the empty ones
contained
in the ranges.




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default Ignore blank cells

For the format I used (multiplying the logical expressions), I could have
left off the double unary signs...

=SUMPRODUCT((D$5:D$31-I$5:I$31<60)*(D$5:D$31<"")*(I$5:I$31<""))

They would only be needed if you used the comma delineated listing of the
logical expressions.

Rick


"Rick Rothstein (MVP - VB)" wrote in
message ...
How do I get this formula:
=SUMPRODUCT(--(D$5:D$31-I$5:I$31<60))

To ignore empty cells? It's currently tallying all the empty ones
contained in the ranges.


Something like this maybe...

=SUMPRODUCT(--(D$5:D$31-I$5:I$31<60)*(D$5:D$31<"")*(I$5:I$31<""))

where you include additional logical expressions to filter those
conditions.

Rick


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
ignore blank cells in function Neil Excel Discussion (Misc queries) 1 October 21st 06 02:22 AM
ignore blank cells Leticia Excel Discussion (Misc queries) 3 February 27th 06 05:41 PM
How to ignore blank cells MattBeckwith Charts and Charting in Excel 10 February 19th 06 11:16 PM
how do you ignore blank cells in formulas Kerry Excel Discussion (Misc queries) 2 February 16th 05 01:56 PM
how do you ignore blank cells Kerry Excel Discussion (Misc queries) 1 February 16th 05 01:55 PM


All times are GMT +1. The time now is 10:23 PM.

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"