SUMIFS to SUMPRODUCT

KevinMMO

New Member
Joined
Mar 2, 2018
Messages
17
Hi, I'm having a problem using the SUMIFS function with ranges from closed workbooks. I have read in internet that the #REF ! problem is caused because this function can't work while the referenced workbook is closed and found that it can be done using the SUMPRODUCT function or with SUM and IF together. What I don't know is how to put this formula into either of the options. The issue is more with the "="& syntax into another function. Here's the function that I made(the ranges used are from the workbook referenced):
=SUMIFS(G5:G50,A5:A50,"="&A25,H5:H50,"="&H25)

<tbody>
</tbody><colgroup><col></colgroup>

<tbody>
</tbody><colgroup><col></colgroup>
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Do you mean = SUMPRODUCT(G5:G50*(A5:A50=A25)*(H5:H50=H25))
Be aware that this function works on closed wbks, but once you opened and closed it, it does not work any more
 
Upvote 0
I have tried the formula, but #VALUE ! appears. Maybe it's because the first range is a date? What I'm trying to do is to sum the amounts of product depending on their date (first range) and their area (second range).
 
Upvote 0
Maybe the formula below (in Pasta 1.xlsx) can helps:

=SUMPRODUCT('[Pasta 2.xlsx]Plan1'!$G$5:$G$10,
--('[Pasta 2.xlsx]Plan1'!$A$5:$A$10=A25),
--('[Pasta 2.xlsx]Plan1'!$H$5:$H$10=G25))


Markmzz
 
Last edited:
Upvote 0
The formula works, but the same error occurs when I close the workbook being referenced. Is there a formula which can be used like this and doesn't give me #REF !?
 
Upvote 0
The formula works, but the same error occurs when I close the workbook being referenced. Is there a formula which can be used like this and doesn't give me #REF !?

Here all is ok. Look at this:

=SUMPRODUCT('C:\Link\[Pasta 2.xlsx]Plan1'!G$5:$G$10,
--('C:\Link\[Pasta 2.xlsx]Plan1'!$A$5:$A$10=A25),
--('C:\Link\[Pasta 2.xlsx]Plan1'!$H$5:$H$10=G25))
<strike></strike><strike></strike>


ABCDEFGH
1With Pasta 1 Open and Pasta 2 CloseWith Pasta 1 Open and Pasta 2 Close
17
18=SUMIFS('C:\Link\[Pasta 2.xlsx]Plan1'!$G$5:$G$10,=SUMPRODUCT('C:\Link\[Pasta 2.xlsx]Plan1'!$G$5:$G$10,
19'C:\Link\[Pasta 2.xlsx]Plan1'!$A$5:$A$10,A25,--('C:\Link\[Pasta 2.xlsx]Plan1'!$A$5:$A$10=A25),
20'C:\Link\[Pasta 2.xlsx]Plan1'!$H$5:$H$10,G25)--('C:\Link\[Pasta 2.xlsx]Plan1'!$H$5:$H$10=G25))
21
22SUMIFSSUMPRODUCT
23#VALOR!30
24
2501/01/2018A
26
*********************************************************************************************************************

<tbody>
</tbody>


Markmzz
 
Upvote 0

Forum statistics

Threads
1,221,525
Messages
6,160,329
Members
451,637
Latest member
hvp2262

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