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

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

DominicB

Well-known Member
Joined
Oct 3, 2005
Messages
1,569
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
 

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,884
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
 

Forum statistics

Threads
1,136,988
Messages
5,678,970
Members
419,796
Latest member
doctorgresham

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
Top