Sumproduct with array criteria

not very bright dave

Board Regular
Joined
Dec 20, 2004
Messages
244
Hi guys

Does anyone know if it's possible to run a sumproduct on a criteria range (effectively an 'and')?

E.g. SUMPRODUCT((W13:W22=Z13:Z15)*(X13:X22))

Cheers

Dave
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Good morning not very bright dave

If I understand you correctly then, no I don't think you can. However, you can use a combination of Sum and If to produce an array formula that should work OK for you :

=SUM(IF(W13:W22=Z13:Z15,X13:X22,0))

Commit using Ctrl + Shift + Enter.

HTH

DominicB
 
Upvote 0
Hi Dave

Yes you can but the ranges must be orthogonal:

=SUMPRODUCT((W13:W22=TRANSPOSE(Z13:Z15))*(X13:X22))
This is an array formula and so MUST be entered with CTRL+SHIFT+ENTER and not just ENTER.

Hope this helps
PGC
 
Upvote 0

Forum statistics

Threads
1,215,248
Messages
6,123,873
Members
449,130
Latest member
lolasmith

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