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

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.
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,224,820
Messages
6,181,157
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