+ Reply to Thread
Results 1 to 9 of 9

AVERAGEIFS formula does not work while referencing another closed Worksheet

  1. #1
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    268

    AVERAGEIFS formula does not work while referencing another closed Worksheet

    At Main2.xlsx worksheet I have three formulas which are referencing another worksheet.
    Two of them which are highlighted in yellow (AVERAGE(LARGE(IF)) and SUM are working fine with the reference worksheet (Book2.xlsx) closed.
    The AVERAGEIFS formula in red is NOT working with the reference worksheet closed, it is working only when the reference worksheet is opened at the same time with the Main2.xlsx. I get the error #VALUE.
    Does anybody know what might be happening?

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: AVERAGEIFS formula does not work while referencing another closed Worksheet

    Averageifs and similar functions don't work with closed workbooks.. you will need to use SUMPRODUCT:

    Please Login or Register  to view this content.
    add paths between the apostrophe (') and the [Book2.xlsx]
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    268

    Re: AVERAGEIFS formula does not work while referencing another closed Worksheet

    great. Thanks NBVC. Also the =MAX formula does not work.... is there any other formula that works as the MAX with closed workbooks?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: AVERAGEIFS formula does not work while referencing another closed Worksheet

    the MAX function does work with closed workbooks, but if you have any of the __IF functions, like Countif, Sumif, Averageif, Countifs, Sumifs, Averageifs, nested in the formula then it won't work.

  5. #5
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    268

    Re: AVERAGEIFS formula does not work while referencing another closed Worksheet

    I am having CPU issue using =SUMPRODUCT instead of AVERAGEIFS. It is taking much more time to calculate it and sometimes it gets stuck when saving due to the high number of this formula in my spreadsheet. Is there another alternative besides =SUMPRODUCT?

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: AVERAGEIFS formula does not work while referencing another closed Worksheet

    You can do the Averageifs in the "closed" workbook, then simply reference that cell in your Open book.

  7. #7
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    268

    Re: AVERAGEIFS formula does not work while referencing another closed Worksheet

    ok tks NBVC! Closing the thread.

  8. #8
    Forum Contributor
    Join Date
    08-18-2018
    Location
    Canada
    MS-Off Ver
    365
    Posts
    151

    Re: AVERAGEIFS formula does not work while referencing another closed Worksheet

    Hi, how to insert the sumproduct in this formula? =IFERROR(ROUND(AVERAGEIFS('[Book1.xlsx]Sheet1'!$F:$F,'[Book1.xlsx]Sheet1'!$K:$K,D27,'[Book1.xlsx]Sheet1'!$G:$G,$B$29)*60,1), " ")

    Thanks.

  9. #9
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    Win10/MSO2016
    Posts
    12,971

    Re: AVERAGEIFS formula does not work while referencing another closed Worksheet

    dummy777,
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Ben Van Johnson

+ 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