+ Reply to Thread
Results 1 to 8 of 8

Excel 2007 : SUMIFS function & #VALUE error

Hybrid View

  1. #1
    Registered User
    Join Date
    11-19-2009
    Location
    WI
    MS-Off Ver
    Excel 2007
    Posts
    22

    Angry SUMIFS function & #VALUE error

    Hello,

    I need some help before I go crazy. I am using the SUMIFS function to pull in some data from another file. Now when both files are open the formula works as intended. When I close both files then open the one with the formula (reports) and enable the updated links, the formula results in a #VALUE!. If I open the other file (master) then the formula works. I have no idea what’s going on. The criteria range and sum range are in the master file while the criteria is in the reports file same as the formula. Any ideas??

    I have attached some dummy files for reference. The formula is in the reports file cell C8. Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: SUMIFS function & #VALUE error

    SUMIFS like SUMIF, COUNTIF, COUNTIFS can not be used with closed targets... you would need to revert to the less efficient SUMPRODUCT equivalent.

  3. #3
    Registered User
    Join Date
    11-19-2009
    Location
    WI
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: SUMIFS function & #VALUE error

    OK, Thanks. I'll see if I can use another function to do the same.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: SUMIFS function & #VALUE error

    I'll see if I can use another function to do the same
    The (big) clue was in my reply.... with master file open insert the below into your report cell:

    =SUMPRODUCT(--('[master test.xlsm]Sheet1'!$G$2:$M$2=$D$2),'[master test.xlsm]Sheet1'!$G$4:$M$4)
    When you close the file the above will still calculate correctly.

    Note:

    Though it does not help in this instance (given closed target restriction) remember that you only need use SUMIFS if you have > 1 conditions, if you have only a single test (as is the case here) then a SUMIF would suffice.

  5. #5
    Registered User
    Join Date
    11-19-2009
    Location
    WI
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: SUMIFS function & #VALUE error

    Thanks, that did the trick.

  6. #6
    Registered User
    Join Date
    11-19-2009
    Location
    WI
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: SUMIFS function & #VALUE error

    I’ve been trying to figure out a way to substitute for an AVERAGEIF?

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

    Re: SUMIFS function & #VALUE error

    Maybe something like:

    =SUMPRODUCT(--('[master test.xlsm]Sheet1'!$G$2:$M$2=$D$2),'[master test.xlsm]Sheet1'!$G$4:$M$4)/SUMPRODUCT(--('[master test.xlsm]Sheet1'!$G$2:$M$2=$D$2)

    or

    =AVERAGE(IF('[master test.xlsm]Sheet1'!$G$2:$M$2=$D$2,'[master test.xlsm]Sheet1'!$G$4:$M$4))

    confirmed with CTRL+SHIFT+ENTER not just ENTER
    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.

  8. #8
    Registered User
    Join Date
    11-19-2009
    Location
    WI
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: SUMIFS function & #VALUE error

    The array worked, Thanks.

+ 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