+ Reply to Thread
Results 1 to 9 of 9

Dynamic Sumproduct using external workbook without it being open

  1. #1
    Registered User
    Join Date
    05-19-2017
    Location
    Nottingham, England
    MS-Off Ver
    2013
    Posts
    13

    Dynamic Sumproduct using external workbook without it being open

    Hello

    I have a sumproduct formula that dynamically checks for headers of data to compare if they have certain criteria.

    Now this formula works but now I'm trying to make it look for data on a external workbook without it being open, so my customers can just replace the raw data with new data, so I have read a few website on how to make it read external workbook but it displaying #Value and when I close the raw data workbook it keeps showing unable to read file.

    Any help on this would be great.
    Attached Files Attached Files

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: Dynamic Sumproduct using external workbook without it being open

    I external mean that file is not in your system or something else???

    BTW sumproduct can work while internal workbook closed ??

    Sorry Please explain more...
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    05-19-2017
    Location
    Nottingham, England
    MS-Off Ver
    2013
    Posts
    13

    Re: Dynamic Sumproduct using external workbook without it being open

    Sorry the "external" workbook will be on the same machine but will be in a different folder to the report workbook.
    Are you asking me that sumproduct can work while internal workbook is closed? Or are you telling me that sumproduct can work while internal workbook is closed?

    So I have a report workbook (reportemp.xlsx) which has the sumproduct formula which I would like to gather the data from incidentemp.xlsx, these workbooks will be stored in different location but on the same PC hard drive.

  4. #4
    Forum Contributor
    Join Date
    09-18-2015
    Location
    Republic of Korea
    MS-Off Ver
    2010
    Posts
    314

    Re: Dynamic Sumproduct using external workbook without it being open

    If you want to read while the file is closed ... you need to use VBA.

  5. #5
    Registered User
    Join Date
    05-19-2017
    Location
    Nottingham, England
    MS-Off Ver
    2013
    Posts
    13

    Re: Dynamic Sumproduct using external workbook without it being open

    Hi thank you for responding.
    Do you have any information on the VBA coding that is required to make this possible?

  6. #6
    Forum Contributor
    Join Date
    09-18-2015
    Location
    Republic of Korea
    MS-Off Ver
    2010
    Posts
    314

    Re: Dynamic Sumproduct using external workbook without it being open

    Sadly, I do not know VBA.

    Excel Programming / VBA / Macros If you have questions on the board ... you can get help.

  7. #7
    Registered User
    Join Date
    05-19-2017
    Location
    Nottingham, England
    MS-Off Ver
    2013
    Posts
    13

    Re: Dynamic Sumproduct using external workbook without it being open

    Quote Originally Posted by chief_abound View Post
    Sadly, I do not know VBA.

    Excel Programming / VBA / Macros If you have questions on the board ... you can get help.
    Ok. I don't think this is entirely true, I have managed to read the excel spreadsheet using sumproduct but it seems that I'm having problems trying to find if the MONTH/Year in Created date is equal to the month/year provided by the user.

    =SUMPRODUCT(--(MONTH(INDEX('C:\MonthlyReportTemp\Data\[incident.xls]Page 1'!$A$1:$M$227,,MATCH("Created",'C:\MonthlyReportTemp\Data\[incident.xls]Page 1'!$A$1:$M$1,0)))='Input Date'!$D$9))

    So I'm able to use Index & Match but when I use MONTH or YEAR to retrieve the month/year of the created date it shows a unable to read file or #VALUE (when workbook is open)

    Is there any other ways to take a full DATE with time and only extract the month and compare with the user value entered in sumproduct while working with a external workbook?

  8. #8
    Forum Contributor
    Join Date
    09-18-2015
    Location
    Republic of Korea
    MS-Off Ver
    2010
    Posts
    314

    Re: Dynamic Sumproduct using external workbook without it being open

    I have never worked with an external workbook ... I do not know, sorry for not helping.

  9. #9
    Registered User
    Join Date
    05-19-2017
    Location
    Nottingham, England
    MS-Off Ver
    2013
    Posts
    13

    Re: Dynamic Sumproduct using external workbook without it being open

    Quote Originally Posted by chief_abound View Post
    I have never worked with an external workbook ... I do not know, sorry for not helping.
    It's ok. I found a VBA workaround by copying the contents of external workbook into a sheet on the report workbook.

    Resolving this thread.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] SUMIF or SUMPRODUCT on External Workbook w/ Wildcards.
    By k64 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-31-2016, 10:03 AM
  2. [SOLVED] Sumproduct formula linking to external workbook works in one file, but not another
    By needmorejam in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-07-2015, 05:05 PM
  3. External Workbook Link with Dynamic Cell Reference
    By mst3kr in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-24-2014, 10:24 PM
  4. External Workbook Link with Dynamic Name
    By AdamParker in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-13-2009, 01:26 PM
  5. open external workbook keep hidden
    By cereldine in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2006, 07:35 AM
  6. [SOLVED] Dynamic External Workbook reference
    By Co-op Bank in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-16-2005, 07:10 PM
  7. Dynamic External Workbook Formula
    By Co-op Bank in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-06-2005, 01:10 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1