Results 1 to 2 of 2

Thread: SUMIF for closed workbook
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Mar 2019
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default SUMIF for closed workbook

    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

  2. #2
    Board Regular
    Join Date
    Mar 2015
    Posts
    3,867
    Post Thanks / Like
    Mentioned
    72 Post(s)
    Tagged
    7 Thread(s)

    Default Re: SUMIF for closed workbook

    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 by Yongle; Mar 29th, 2019 at 05:58 AM.

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •