+ Reply to Thread
Results 1 to 12 of 12

Issue with Sumifs Function

  1. #1
    Registered User
    Join Date
    06-11-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    39

    Issue with Sumifs Function

    I'm trying to do a Sumifs to find the sum of cells in a column that match criteria in two other columns (same row). I'm getting a Value error. I need to use the criteria that links the current cell in that row (so if Im in row 5, one criteria should be "=D3".

    Can I not use cell references as criteria? Do the cell references have to be in a certain format?? Any help would be great!

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Issue with Sumifs Function

    It should be just D3, not "=D3", although that will not be the cause of the error. Do you have existing errors in the data range that the formula refers to?

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Issue with Sumifs Function

    You'll get the #VALUE error if the ranges are mismatched or improper syntax (like criteria ahead of criteria range).

    Show us the formula that is causing the error.

    And using "=D3" will likely give you a result of 0. It has to be just D3 (or "="&D3) as the criteria.
    Last edited by Cutter; 07-09-2012 at 08:11 AM.

  4. #4
    Registered User
    Join Date
    06-11-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Issue with Sumifs Function

    Quote Originally Posted by jason.b75 View Post
    It should be just D3, not "=D3", although that will not be the cause of the error. Do you have existing errors in the data range that the formula refers to?
    Ok, so if I type in D3 it should refer to that specific cell as a criteria?

    No, there are no errors in the reference cells. They are formulas however, not static values. Is that an issue?

  5. #5
    Registered User
    Join Date
    06-11-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Issue with Sumifs Function

    Quote Originally Posted by Cutter View Post
    You'll get the #VALUE error if the ranges are mismatched.

    Show us the formula that is causing the error.

    =SUMIFS($K$3:$K$1048576,$N$3:$N$1048576,N3,$B$3:$B$1346,"=No")

  6. #6
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Issue with Sumifs Function

    Formula and static values / constants would evaluate the same.

    As cutter says, mismatched ranges could be the cause, it will be easier to find the error if you post the formula you're trying.

    If it uses named ranges then you would also need to provide the defenitions behind the names.

    edit:- reply posted while I was typing

    it should be

    =SUMIFS($K$3:$K$1048576,$N$3:$N$1048576,N3,$B$3:$B$1048576,"=No")

  7. #7
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Issue with Sumifs Function

    In your forumla, $B$3:$B$1346 should be $B$3:$B$1048576 too

    else
    =SUMIFS($K$3:$K$1346,$N$3:$N$1346,N3,$B$3:$B$1346,"=No") if your range of data is between rows 3-1346
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  8. #8
    Registered User
    Join Date
    06-11-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Issue with Sumifs Function

    Quote Originally Posted by jason.b75 View Post
    Formula and static values / constants would evaluate the same.

    As cutter says, mismatched ranges could be the cause, it will be easier to find the error if you post the formula you're trying.

    If it uses named ranges then you would also need to provide the defenitions behind the names.

    edit:- reply posted while I was typing

    it should be

    =SUMIFS($K$3:$K$1048576,$N$3:$N$1048576,N3,$B$3:$B$1048576,"=No")
    Great that worked! However, I'm getting a weird issue now. Some of the values are "summing" to an odd number of 14,552 even though they don't meet the criteria of "=No". Also odd is that they total nearly 200,000 not 14,552. Any suggestions to fix that?

  9. #9
    Registered User
    Join Date
    06-11-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Issue with Sumifs Function

    Quote Originally Posted by Ace_XL View Post
    In your forumla, $B$3:$B$1346 should be $B$3:$B$1048576 too

    else
    =SUMIFS($K$3:$K$1346,$N$3:$N$1346,N3,$B$3:$B$1346,"=No") if your range of data is between rows 3-1346
    I got it fixed, however it still doesn't seem to be properly picking up "=No" criteria. Some things are summing that do not fit that criteria. Any suggestions?

  10. #10
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Issue with Sumifs Function

    Just a thought...shouldn't "=No" just read as "No" instead?

  11. #11
    Registered User
    Join Date
    06-11-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Issue with Sumifs Function

    Quote Originally Posted by Ace_XL View Post
    Just a thought...shouldn't "=No" just read as "No" instead?
    I tried that, it doesn't seem to make a difference. What is interesting is that it is summing to a seemingly abatrary number, not the actual sum of those criteria (regardless whether it pays attention to the "=No" criteria.

  12. #12
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Issue with Sumifs Function

    Mate...its best if you can upload a worksheet (without confidential data) for some people to have a closer look!

+ 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