+ Reply to Thread
Results 1 to 6 of 6

COUNTIFS - Change formula for closed external workbook

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-14-2010
    Location
    England
    MS-Off Ver
    2013
    Posts
    110

    COUNTIFS - Change formula for closed external workbook

    Hi,

    I have been using a countifs formula which works great, but now want to reference to an external workbook which only works whilst they're open. Can any one help change this formula to be able to work with closed external workbooks please?

    Formula: copy to clipboard

    =COUNTIFS('[BOX - Master.xlsx]Master'!$I:$I,"done")+COUNTIFS('[BOX - Master.xlsx]Master'!$I:$I,"completed")



    Regards
    Jamie
    Last edited by JDobbsy1987; 04-25-2017 at 12:11 PM.

  2. #2
    Forum Contributor
    Join Date
    01-05-2017
    Location
    New York
    MS-Off Ver
    Office 2016
    Posts
    206

    Re: COUNTIFS - Change formula for closed external workbook

    You have to enter the file path for the external workbook

    Formula: copy to clipboard
    =COUNTIFS('*enter path here*[BOX - Master.xlsx]Master'!$I:$I,"done")+COUNTIFS('*enter path here*[BOX - Master.xlsx]Master'!$I:$I,"completed")


    such as C:\Docs\... etc.

  3. #3
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,785

    Re: COUNTIFS - Change formula for closed external workbook

    I assume both ov workbooks are in the same directory.
    then you may refference I column of closed workbook into any column(say I column) of the active workbook then you may count your criteria text from the active workbook with this formula
    =COUNTIF(I:I,"done")+COUNTIF(I:I,"completed")
    Teach me Excel VBA

  4. #4
    Forum Contributor
    Join Date
    01-14-2010
    Location
    England
    MS-Off Ver
    2013
    Posts
    110

    Re: COUNTIFS - Change formula for closed external workbook

    Hi,

    I do have the path as well, sorry it disappeared as I had the workbook open. The problem is, when the external workbook is closed it changes to a "#Value!" error.

    Regards.

  5. #5
    Forum Contributor
    Join Date
    01-14-2010
    Location
    England
    MS-Off Ver
    2013
    Posts
    110

    Re: COUNTIFS - Change formula for closed external workbook

    Sorry to double post, I have seen online that this should be replaced to a sumproduct or sum(if( array formula however I cannot get either to work nor do I understand so I am struggling to do so.

    Any help would be appreciated.

    Regards.

  6. #6
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,785

    Re: COUNTIFS - Change formula for closed external workbook

    This would have been my approach.First bring data from closed workbook and then count them. See the attachement.
    Result is in the A1 Cell of OpenedWB
    Attached Files Attached Files

+ 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] Sumproduct to replace countifs as countifs don't work on external source reference
    By KrishnaSagar in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-02-2017, 02:33 AM
  2. [SOLVED] using Lookup to get values from external workbook, open or closed.
    By JaimeP in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-06-2017, 08:54 AM
  3. Replacment for indirect function; external workbook is closed
    By zeko90 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 11-07-2015, 07:28 AM
  4. Use Countifs on a closed workbook
    By DannyJ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-08-2015, 01:46 AM
  5. [SOLVED] External links break after the source workbook is closed
    By jankee in forum Excel General
    Replies: 6
    Last Post: 05-21-2013, 09:14 AM
  6. Change certain values within closed workbook
    By jeffreybrown in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-20-2012, 01:51 PM
  7. Referencing External Closed workbook Syntax (Books)?
    By danny2000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-29-2009, 01:55 AM

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