SUMPRODUCT and Blank Cells

imback2nite

Board Regular
Joined
Oct 30, 2004
Messages
203
Office Version
  1. 2003 or older
Platform
  1. Windows
Hello everyone and thank you for looking at this question. I’m using, or should I say, attempting to use SUMPRODUCT.
I’m trying to use this formula. The problem I’m having is there are blank cells in columns ‘A’, ‘B’, ‘C’ and the ‘D:AA’. How can I negate the blank cells?

=SUMPRODUCT(--(Finances!$D$36:$AA$1000)*(Finances!$A$36:$A$1000= Chart!$D$5)*(Finances!$B$36:$B$1000=Chart!$E$5)*(Finances!$C$36:$C$1000=Finances!$C$13))
 
Try again:

=SUMPRODUCT(N(+Finances!$D$36:$AA$1000)*(Finances!$A$36:$A$1000= Chart!$D$5)*(Finances!$B$36:$B$1000=Chart!$E$5)*(Finances!$C$36:$C$1000=Finances!$C$13))
 
Upvote 0
Solution

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Upvote 0
Try again:

=SUMPRODUCT(N(+Finances!$D$36:$AA$1000)*(Finances!$A$36:$A$1000= Chart!$D$5)*(Finances!$B$36:$B$1000=Chart!$E$5)*(Finances!$C$36:$C$1000=Finances!$C$13))
I apologize for the late reply but the =SUMPRODUCT(N(+ worked!
What

Try again:

=SUMPRODUCT(N(+Finances!$D$36:$AA$1000)*(Finances!$A$36:$A$1000= Chart!$D$5)*(Finances!$B$36:$B$1000=Chart!$E$5)*(Finances!$C$36:$C$1000=Finances!$C$13))
Thank you! Thank you!!
I apologize for the late reply. The =SUMPRODUCT(N(+ seems to have worked! What exactly is the (N(+ ? Is that what negates the empty cells?
 
Last edited:
Upvote 0
I apologize for the late reply but the =SUMPRODUCT(N(+ worked!
What


Thank you! Thank you!!
I apologize for the late reply. The =SUMPRODUCT(N(+ seems to have worked! What exactly is the (N(+ ? Is that what negates the empty cells?
My fault! I have one more criteria. ☹️ I realize SUMPRODUCT is going by rows but can I include a horizontal criteria? I only want to SUM if the two criteria (Chart!$D$5 and Chart!$E$5) are met. Can I use another criteria? (Finances!$E$12) This criteria will span the Finances page from ($D$34:$AA$34).
I"m using the formula
=IF(AND(Chart!$C5="",Chart!$D5=""),"",IF(AND(Chart!$C5<>"",Chart!$D5=""),SUMPRODUCT(N(+Finances!$D$35:$AA$999)*(Finances!$A$35:$A$999=Chart!$C5)*(Finances!$C$35:$C$999=Finances!$C$13)),IF(AND(Chart!$C5<>"",Chart!$D5<>""),SUMPRODUCT(N(+Finances!$D$35:$AA$999)*(Finances!$A$35:$A$999=Chart!$C5)*(Finances!$B$35:$B$999=Chart!$D5)*(Finances!$C$35:$C$999=Finances!$C$13)),"")))
 
Upvote 0
I figured it out! Thanks to everyone!!!
=IF(AND(Chart!$C7="",Chart!$D7=""),"",IF(AND(Chart!$C7<>"",Chart!$D7=""),SUMPRODUCT(N(+Finances!$D$37:$AA$1001)*(Finances!$A$37:$A$1001=Chart!$C7)*($D$36:$AA$36=$E$12)*(Finances!$C$37:$C$1001=Finances!$C$13)),IF(AND(Chart!$C7<>"",Chart!$D7<>""),SUMPRODUCT(N(+Finances!$D$37:$AA$1001)*(Finances!$A$37:$A$1001=Chart!$C7)*($D$36:$AA$36=$E$12)*(Finances!$B$37:$B$1001=Chart!$D7)*(Finances!$C$37:$C$1001=Finances!$C$13)),"")))
 
Upvote 0

Forum statistics

Threads
1,215,068
Messages
6,122,950
Members
449,095
Latest member
nmaske

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top