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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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
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,224,822
Messages
6,181,164
Members
453,021
Latest member
Justyna P

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