Convert Sumif to Sumproduct not working....

markgrnh

New Member
Joined
Apr 7, 2023
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Good afternoon,

I am trying to convert a Sumif formula to a Sumproduct formula as the reference is using another sheet that is not always open which results in an error. Unfortunately all I get from the Sumproduct formula is a #N/A

Any help would be appreciated,

This is my Sumif formula : =SUMIF('S:\Finance Department\Credit Control Debtor Reporting Tool\[Debtor Checker V5.xlsm]CML Aged Debtors'!$BL:$BL,C2,'S:\Finance Department\Credit Control Debtor Reporting Tool\[Debtor Checker V5.xlsm]CML Aged Debtors'!$K:$K)

That works fine, but only when the sheet is open so I tried the Sumproduct for when it closed, and this is the Sumproduct formula:

=SUMPRODUCT(--('S:\Finance Department\Credit Control Debtor Reporting Tool\[Debtor Checker V5.xlsm]CML Aged Debtors'!$BL1:$BL10000=C2),'S:\Finance Department\Credit Control Debtor Reporting Tool\[Debtor Checker V5.xlsm]CML Aged Debtors'!$K1:$K10000)

Any ideas what I am doing wrong?

Thanks

Mark
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Does your SumProduct formula work when the files are open?
You could review the formula with just a few rows and known expected results.
 
Upvote 0
Does your SumProduct formula work when the files are open?
You could review the formula with just a few rows and known expected results.
Hi Dave it doesn't but the Sumif formula does.

Thanks
Mark
 
Upvote 0
Did you try reviewing the formula
You could review the formula with just a few rows and known expected results.
 
Upvote 0
Any ideas what I am doing wrong?

Do you have any #N/A errors in this range 'S:\Finance Department\Credit Control Debtor Reporting Tool\[Debtor Checker V5.xlsm]CML Aged Debtors'!$K1:$K10000?

SUMIFS() can be a little more resilient against such problems.
 
Upvote 0
Solution
I've turned off the computer now but will try your suggestions in the morning so thanks for your replies and I will update you soon 😊
 
Upvote 0
Thanks FormR, yeah I had one rogue N/A on the sheet that was messing it all up, once I fixed that, it fixed the Sumproduct formula. Thanks for both your replies :)
 
Upvote 0

Forum statistics

Threads
1,215,084
Messages
6,123,028
Members
449,092
Latest member
ikke

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