Replacing SUMIFs with SUMPRODUCT

bark01

Board Regular
Joined
Sep 6, 2006
Messages
135
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a SUMIFs statement that works but as it pulls data form an external sheet, erros out if I don't have both sheets open when I update.

I rarely use sumprodcuts but followed a guide to convert it and I get a value error. This is my original SumIf and resulting SumProduct. CAn anyone see what I'm doing wrong?

SUMIFS('[Cancellations Dashboard Report.xlsb]MainDataTable'!$Q:$Q,'[Cancellations Dashboard Report.xlsb]MainDataTable'!$D:$D,"A3S",'[Cancellations Dashboard Report.xlsb]MainDataTable'!$G:$G,"SMART",'[Cancellations Dashboard Report.xlsb]MainDataTable'!$A:$A,H$2,'[Cancellations Dashboard Report.xlsb]MainDataTable'!$B:$B,"MDS")

SUMPRODUCT(('[Cancellations Dashboard Report.xlsb]MainDataTable'!$D:$D="A3S")*('[Cancellations Dashboard Report.xlsb]MainDataTable'!$G:$G="SMART")*('[Cancellations Dashboard Report.xlsb]MainDataTable'!$A:$A=H$2)*('[Cancellations Dashboard Report.xlsb]MainDataTable'!$B:$B="MDS")*('[Cancellations Dashboard Report.xlsb]MainDataTable'!$Q:$Q))


Thanks
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi, try like this instead.

Code:
SUMPRODUCT(--('[Cancellations Dashboard Report.xlsb]MainDataTable'!$D:$D="A3S"),--('[Cancellations Dashboard Report.xlsb]MainDataTable'!$G:$G="SMART"),--('[Cancellations Dashboard Report.xlsb]MainDataTable'!$A:$A=H$2),--('[Cancellations Dashboard Report.xlsb]MainDataTable'!$B:$B="MDS"),'[Cancellations Dashboard Report.xlsb]MainDataTable'!$Q:$Q)

Note: for efficiency reasons, you shouldn't use full column references - better to use a sensible maximum row number.
 
Last edited:
Upvote 0
Hi, try like this instead.

Code:
SUMPRODUCT(--('[Cancellations Dashboard Report.xlsb]MainDataTable'!$D:$D="A3S"),--('[Cancellations Dashboard Report.xlsb]MainDataTable'!$G:$G="SMART"),--('[Cancellations Dashboard Report.xlsb]MainDataTable'!$A:$A=H$2),--('[Cancellations Dashboard Report.xlsb]MainDataTable'!$B:$B="MDS"),'[Cancellations Dashboard Report.xlsb]MainDataTable'!$Q:$Q)

Note: for efficiency reasons, you shouldn't use full column references - better to use a sensible maximum row number.

That works thanks
 
Upvote 0
Yes you will have to use cells that show numbers only in column Q of that sheet eg Q2:Q100.
 
Upvote 0

Forum statistics

Threads
1,215,417
Messages
6,124,791
Members
449,188
Latest member
Hoffk036

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