SUMIF for closed workbook

dinsey90

New Member
Joined
Mar 28, 2019
Messages
6
Hi,

We have several target sheets that run using the formula below. I have been told that they always used to work without having the source book open but from researching online i dont see how it was possible as they have always been using sumif. could you have a look at the formula below and see how we could make it work without needing to have the source workbook open? Minimal changes would be fantastic as we have about 1000 spreadsheets that we would need to change this on.

Many thanks

=(SUMIF('T:\Folder1\SubFolder1\SubFolder2\[workbook.xlsx]Labour'!$A$19:$A$1048576,"<=28/02/19",'T:\Folder1\SubFolder1\SubFolder2\[workbook.xlsx]Labour'!$AF$19:$AF$1048576)+SUMIF('T:\\Folder1\SubFolder1\SubFolder2\[workbook.xlsx]Materials'!$A$9:$A$1048576,"<=28/02/19",'T:\\Folder1\SubFolder1\SubFolder2\[workbook.xlsx]Materials'!$E$9:$E$1048576))*(1+Fixover)

Many thanks
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Perhaps the workbook was opened via VBA to allow formula to be updated and immediately closed again via VBA and "they" did not notice that happening

Code:
  Dim wb As WorkBook
  Set wb Workbooks.Open("T:\Folder1\SubFolder1\SubFolder2\workbook.xlsx")
  wb.Close False
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,789
Messages
6,121,590
Members
449,039
Latest member
Arbind kumar

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