ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Ignore blank cells (https://www.excelbanter.com/excel-discussion-misc-queries/164137-ignore-blank-cells.html)

Angyl

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.

Bob Phillips

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.




Rick Rothstein \(MVP - VB\)

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


Angyl

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.





Rick Rothstein \(MVP - VB\)

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




All times are GMT +1. The time now is 08:29 AM.

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