SUMPRODUCT of Multiple columns

gldurand

Board Regular
Joined
Jun 8, 2006
Messages
178
Office Version
  1. 2016
Platform
  1. Windows
Hi Gang

I have been trying to figure out how to use this formula when i need to SUM multiple columns

=SUMPRODUCT(--('Source Data'!$BE$1:$BE$65000=$A$3),--ISNUMBER(MATCH('Source Data'!$M$1:$M$65000,{"Connectivity - Legacy","Connectivity - IP"},0)),--('Source Data'!$D$1:$D$65000="Run Rate"),'Source Data'!$U$1:$U$65000)

I want to ADD Column U as stated after criteria met, but also Clumn V and W


I copied the formula 3 times changing the SUM Range that works but is there an easier way

=SUMPRODUCT(--('Source Data'!$BE$1:$BE$65000=$A$3),--ISNUMBER(MATCH('Source Data'!$M$1:$M$65000,{"Connectivity - Legacy","Connectivity - IP"},0)),--('Source Data'!$D$1:$D$65000="Run Rate"),'Source Data'!$U$1:$U$65000)

+

SUMPRODUCT(--('Source Data'!$BE$1:$BE$65000=$A$3),--ISNUMBER(MATCH('Source Data'!$M$1:$M$65000,{"Connectivity - Legacy","Connectivity - IP"},0)),--('Source Data'!$D$1:$D$65000="Run Rate"),'Source Data'!$V$1:$V$65000)

+

SUMPRODUCT(--('Source Data'!$BE$1:$BE$65000=$A$3),--ISNUMBER(MATCH('Source Data'!$M$1:$M$65000,{"Connectivity - Legacy","Connectivity - IP"},0)),--('Source Data'!$D$1:$D$65000="Run Rate"),'Source Data'!$W$1:$W$65000)

Thanks for any assistance
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hello, Try

Code:
=SUMPRODUCT(--('Source Data'!$BE$1:$BE$65000=$A$3),--ISNUMBER(MATCH('Source Data'!$M$1:$M$65000,{"Connectivity - Legacy","Connectivity - IP"},0)),--('Source Data'!$D$1:$D$65000="Run Rate"),'Source Data'!$U$1:$U$65000+'Source Data'!$V$1:$V$65000+'Source Data'!$W$1:$W$65000)
 
Upvote 0
What did you get when try this? Any error or not accurate result? Col U, V & W should contains only numbers. If there is any text in these columns will give error.
 
Upvote 0
i got a VALUE Error, i will check the data, but it seems good
 
Upvote 0
i found the problem, I was including the Header row $1 in my formula which is of course text

thanks
 
Upvote 0
Hi Gang

I have been trying to figure out how to use this formula when i need to SUM multiple columns

=SUMPRODUCT(--('Source Data'!$BE$1:$BE$65000=$A$3),--ISNUMBER(MATCH('Source Data'!$M$1:$M$65000,{"Connectivity - Legacy","Connectivity - IP"},0)),--('Source Data'!$D$1:$D$65000="Run Rate"),'Source Data'!$U$1:$U$65000)

I want to ADD Column U as stated after criteria met, but also Clumn V and W


I copied the formula 3 times changing the SUM Range that works but is there an easier way

=SUMPRODUCT(--('Source Data'!$BE$1:$BE$65000=$A$3),--ISNUMBER(MATCH('Source Data'!$M$1:$M$65000,{"Connectivity - Legacy","Connectivity - IP"},0)),--('Source Data'!$D$1:$D$65000="Run Rate"),'Source Data'!$U$1:$U$65000)

+

SUMPRODUCT(--('Source Data'!$BE$1:$BE$65000=$A$3),--ISNUMBER(MATCH('Source Data'!$M$1:$M$65000,{"Connectivity - Legacy","Connectivity - IP"},0)),--('Source Data'!$D$1:$D$65000="Run Rate"),'Source Data'!$V$1:$V$65000)

+

SUMPRODUCT(--('Source Data'!$BE$1:$BE$65000=$A$3),--ISNUMBER(MATCH('Source Data'!$M$1:$M$65000,{"Connectivity - Legacy","Connectivity - IP"},0)),--('Source Data'!$D$1:$D$65000="Run Rate"),'Source Data'!$W$1:$W$65000)

Thanks for any assistance

Try not to mix vectors and matrices in a SumProduct formula. Better switch to:

Control+shift+enter, not just enter:
Rich (BB code):
=SUM(
   IF('Source Data'!$BE$1:$BE$65000=$A$3,
   IF(ISNUMBER(MATCH('Source Data'!$M$1:$M$65000,
           {"Connectivity - Legacy","Connectivity - IP"},0)),
   IF('Source Data'!$D$1:$D$65000="Run Rate"),
     'Source Data'!$U$1:$W$65000))))
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,865
Members
452,948
Latest member
UsmanAli786

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