+ Reply to Thread
Results 1 to 2 of 2

#value on sum & countifs formulas when external files are closed.

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

    #value on sum & countifs formulas when external files are closed.

    Hi

    I manage to get help on this table in the attached spreadsheet in which the sum formulas work if the 2 files are opened together but when I close the file where the values are extracted, from I receive #value across all cells that the formulas are placed in. Need some help on the below formula.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by AliGW; 07-09-2017 at 04:32 AM.

  2. #2
    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,206

    Re: #value on sum & countifs formulas when external files are closed.

    Try

    =SUMPRODUCT(('[Countifs Total.xlsx]worksheet1'!$J$2:$J$1000={"Mike","John"})*('[Countifs Total.xlsx]worksheet1'!$B$2:$B$1000=C$2)*('[Countifs Total.xlsx]worksheet1'!$A$2:$A$1000=SUBSTITUTE(B$2," ","")))


    =SUMPRODUCT(('[Countifs Total.xlsx]worksheet1'!$B$2:$B$1000=C$2)*('[Countifs Total.xlsx]worksheet1'!$A$2:$A$1000=SUBSTITUTE(B$2," ","")))-C3

    With C3=0, you cannot possibly get a negative result for the second formula

    With SUMPRODUCT you must NOT use whole column ranges i.e A:A

+ 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] #value when external file is closed
    By Shamz41 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-22-2017, 01:40 AM
  2. Can indirect() work using closed external files??
    By Hall in forum Excel General
    Replies: 12
    Last Post: 12-28-2015, 03:46 AM
  3. Replies: 0
    Last Post: 07-28-2014, 10:19 PM
  4. Replies: 0
    Last Post: 04-02-2014, 03:25 PM
  5. [SOLVED] Save/Closed only macro related files and leave unrelated files open in excel?
    By rdowney79 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-12-2013, 04:17 PM
  6. Dynamic VLOOKUP from external, closed workbooks
    By dolik in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2005, 08:44 AM
  7. Help: INDEX and closed external workbooks
    By curious1 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-05-2005, 11:16 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