+ Reply to Thread
Results 1 to 8 of 8

External Links Not Updating when inside COUNTIFS

  1. #1
    Registered User
    Join Date
    08-13-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    24

    External Links Not Updating when inside COUNTIFS

    Hi there,

    I'm having trouble with building a master report for some trend reviews I've built.

    I have 9 workbooks that are updated weekly, there is a small macro in them to clean up some formatting that is exported from my work's database. There is a tab in these work books that simply counts the number of times there is a value over a certain threshold. The threshold is variable and is pulled from a cell with data validation on it to force the threshhold to multiples of 100 up to 1000. It also has a variable date filter.

    Formula looks something like this:

    Please Login or Register  to view this content.
    Finds matching entry in list, checks if the date falls between the two specified and then checks if it is over the threshold.

    Problem I have is that I want to roll these up into a master trend report.

    As soon as I alter the forumla to look like this:

    Please Login or Register  to view this content.
    It will update fine with both books open, but open the master by itself and i get a #VALUE error. I should note, the error occurs when I change my threshold drop down or date dropdown.

    I've added the folder to my trusted locations, unchecked the 'Update Links to other workbooks' in the advanced settings, checked my source reference in the Links dialog (check source returns an 'OK')

    Here's the kicker - I put a few single cell references so =West_Test.xlsm!Transactions'!A1 and they update fine. Make changes in one workbook, save, close, open master and it's updated to new value.

    Any thoughts?
    Last edited by sunsoar77; 10-18-2012 at 01:25 AM. Reason: clarity

  2. #2
    Forum Contributor
    Join Date
    08-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: External Links Not Updating when inside COUNTIFS

    Can use Sumproduct instead of Countif.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: External Links Not Updating when inside COUNTIFS

    some formulas/functions wont work on closed workbooks, countifs is 1 of them, sorry
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    08-13-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: External Links Not Updating when inside COUNTIFS

    Quote Originally Posted by nested.if1@gmail.com View Post
    Can use Sumproduct instead of Countif.
    Not sure how sumproduct will do what I need to do? I'm only counting instances. There is no multiplication involved.

    Can you explain how I could use sumproduct in lieu of countifs?

    Quote Originally Posted by FDibbins View Post
    some formulas/functions wont work on closed workbooks, countifs is 1 of them, sorry
    Thanks for that. Are there any alternatives?

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: External Links Not Updating when inside COUNTIFS

    wishful thinking, but i dont suppose you could combine them all into 1 workbook?

  6. #6
    Registered User
    Join Date
    08-13-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: External Links Not Updating when inside COUNTIFS

    The roll up report is only 'needed' once per month. I think I'll just do a copy/paste 9 times each month to update the master review sheet.

    Not an ideal solution but the best one right now. Maybe a macro in the future to handle all the copy/pasting with one button click.

    I'll mark thread as solved as I've got an answer, just not the one I wanted!

    Thanks for your assistance!

  7. #7
    Forum Contributor
    Join Date
    08-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: External Links Not Updating when inside COUNTIFS

    Try this...

    =SUMPRODUCT((Transactions!F:F=A6)*(Transactions!C:C>=$H$3)*(Transactions!C:C<=$H$4)*(Transactions!J:J>=$F$2))

  8. #8
    Registered User
    Join Date
    08-13-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: External Links Not Updating when inside COUNTIFS

    Hi nested.if,

    Formula worked OK for local purposes, but once I tried to use it with an external reference it failed.

    Also took a long time to calculate data as the sheets I'm using are currently 500 rows and have between 20 and 50 rows added each week so that will only get worse.

    Thanks for the suggestion, however I think I'll build a macro to do a copy paste for my purposes to keep the worksheet's responsive.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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