Sumifs across workbooks

Flytallguy83

New Member
Joined
Nov 26, 2007
Messages
4
Hello,
I am trying to use sumifs formulas across workbooks. I have read a couple of posts about this and wrote vb code to open each workbooks that my sumifs formulas reference. Even after I open and close each referenced workbook though, I still have #VALUE errors. I am using variables in my file paths when opening the referenced workbooks. Does anyone know what I could be doing wrong? If I manually open my referenced workbooks, my sumifs formulas calculate correctly.
 

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).
Use SUMPRODUCT instead...

=SUMPRODUCT(--(RangeX=CondX),--(RangeY=CondY),RangeToSum)
 
Upvote 0
Thanks Domenic,
Maybe I am not familiar enough with sumproduct formulas, but I do not wish to multiply anything. Here is my sumifs formula, I have tried putting it in your suggested sumproduct format, but keep resulting in 0's.

=SUMIFS([307EOM.xlsm]REC_SHIP!$I:$I,[307EOM.xlsm]REC_SHIP!$A:$A,LEFT(RIGHT(CELL("FILENAME",$A$1),8),2),[307EOM.xlsm]REC_SHIP!$F:$F,"I",[307EOM.xlsm]REC_SHIP!$M:$M,"R")
 
Upvote 0
Hi Dominic

I'm trying to sum a value of a column where the conditions in two ranges match.
This is across workbooks so I need to use SUMPRODUCT. I'm using the example you posted above but I'm unclear what to enter for 'CondX/CondY'. Below is my example with the 3 ranges entered

=SUMPRODUCT(--($B$4:$B$48=CondX),--([Timesheet_NM.xlsx]Projects_NM!$A$2:$A$100=CondY),[Timesheet_NM.xlsx]Projects_NM!$S$2:$S$100)

Feel like I have missed something basic here...

Thanks in advance
 
Upvote 0

Forum statistics

Threads
1,215,477
Messages
6,125,031
Members
449,205
Latest member
Eggy66

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