problem with sumproduct formula

y481184

Board Regular
Can someone please tell me why this formula is not working?

=SUMPRODUCT((Query!\$D\$11:\$D\$1502 = "10")*(Query!\$K\$11:\$K\$1502 = "13")*(Query!\$J\$11:\$J\$1502))/2000

I am not receiving an error, I am simply not getting any value at all, even though there are cells in D11:D1502 that do equal 10 and cells in k11:k1502 that equal 13. Why is there a problem?

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi,

Take away the double quotes around 10 an 13.

Thank you so much. Can you answer one more question for me? How could I incorporate dates into this sumproduct formula. For instance I would like to add only sum records in which:

D11:D1502 = 10
K11:K1502 = 13
and C11:C1502 is between 5/5/2003 and 7/10/2003

Is there anyway that this can be done? I tried to insert a DATE function within my SUMPRODUCT function, but this did not work. Any suggestions?

Code:
``=SUMPRODUCT((Query!\$D\$11:\$D\$1502=10)*(Query!\$K\$11:\$K\$1502=13)*(Query!\$C\$11:\$C\$1502>=DATE(2003,5,5))*(Query!\$C\$11:\$C\$1502<=DATE(2003,10,7))*(Query!\$J\$11:\$J\$1502))/2000``

Replies
16
Views
383
Replies
6
Views
242
Replies
3
Views
145
Replies
0
Views
1K
Replies
5
Views
178

1,219,574
Messages
6,149,084
Members
450,855
Latest member
onecodevee01

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?

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

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