+ Reply to Thread
Results 1 to 5 of 5

update range from external file

  1. #1
    Forum Contributor
    Join Date
    09-30-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    266

    update range from external file

    Hi I have an excel sumif formula in attached file called linked book1. The range is located in another external excel book called linked file 2. However the cell shows an error value whenever linked file 2 book is closed. Is there a way to update the formula not to show the error value.
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: update range from external file

    SUMIF continues to be a problem for closed workbooks. Switch to the old school SUMPRODUCT

    =SUMPRODUCT(('C:\Users\spilla1x\Downloads\[Test report 1 (1) (1) (1) (1).xlsx]Test File 1'!$H$2:$H$9=Sheet1!A$1),'C:\Users\spilla1x\Downloads\[Test report 1 (1) (1) (1) (1).xlsx]Test File 1'!$E$2:$E$8)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    09-30-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    266

    Re: update range from external file

    Hi, I seem to have an error value with the sumproduct formula. Am i missing something? Cell A2 in linked book1 is to calculate the total submissions in column E based on the collection date in column H from linked Book2.
    Last edited by Shamz41; 05-25-2017 at 03:18 AM.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,175

    Re: update range from external file

    This worked with your test files:

    =SUMPRODUCT(('[Linked Book2.xlsx]Test File 1'!$H$2:$H$8=Sheet1!A$1)*('[Linked Book2.xlsx]Test File 1'!$E$2:$E$8))


    I can't see why the formula posted by Jerry does not work.

    Did you copy/paste the formula?

  5. #5
    Forum Contributor
    Join Date
    09-30-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    266

    Re: update range from external file

    It works now. Thanks.

+ 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. Update multiple records of the master file using external data from another workbook
    By Subair Khan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-14-2015, 08:23 AM
  2. Link and update a dynamic excel cell range to external jpeg image
    By oscar.mz15 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-21-2013, 02:19 PM
  3. Replies: 2
    Last Post: 11-28-2012, 05:43 PM
  4. Quick update to name of external reference file in Excel 2003
    By Glayva in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-25-2012, 06:07 AM
  5. Automatic update of External Connection Text File
    By improveddc in forum Excel General
    Replies: 0
    Last Post: 01-21-2009, 06:36 PM
  6. Update Columns based on External Text file
    By iMacFlats in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-09-2005, 05:20 PM
  7. button to update external file links?
    By neowok in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-28-2005, 12:34 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