+ Reply to Thread
Results 1 to 10 of 10

sumifs function returning 0 error...

  1. #1
    Registered User
    Join Date
    04-06-2012
    Location
    Seattle, Wa
    MS-Off Ver
    Excel 2010
    Posts
    8

    sumifs function returning 0 error...

    Hello!

    I am try to sync the user's selection to the data I have on a sheet named AnnualBudget to sheet 2 in a workbook (in excel 2010). I have three criterias to meet and sumifs function seems like a good function match. Below is my funtion and it seems all is in order. However, it returns 0 instead the of actual annual budget value. Am I missing something or is the function wrong?

    Function:

    =SUMIFS(AnnualBudget!E10:E236,AnnualBudget! B10:B236, "True", AnnualBudget! A10:A236, sheet2!B2, AnnualBudget! D10:D236, sheet2!B3)

    Explanation of function:

    AnnualBudget!E10:E236, the annual budget range to show/sum in the cell where there formula is placed
    AnnualBudget! B10:B236, the range of 1st criteria to meet, whether it is true or false
    "True", the criteria to match
    AnnualBudget! A10:A236, the range criteria of the region for the annual budget
    sheet2!B2, criteria 2: the user’s selection of the desired region
    AnnualBudget! D10:D236, the range criteria of the sub region for the annual budget
    sheet2!B3, criteria 3: the user’s selection of the desired sub region

    Thanks in advance!

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: sumifs function returning 0 error...

    Are there leading/trailing spaces in the region/sub-region?

  3. #3
    Registered User
    Join Date
    04-06-2012
    Location
    Seattle, Wa
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: sumifs function returning 0 error...

    No, not that I can see. the data is in a table format.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: sumifs function returning 0 error...

    Try checking each criterion individually, e.g. a SUMIFS function with just the first criterion like this

    =SUMIFS(AnnualBudget!E10:E236,AnnualBudget!B10:B236,"True")

    Do you get a >0 result?
    Audere est facere

  5. #5
    Registered User
    Join Date
    04-06-2012
    Location
    Seattle, Wa
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: sumifs function returning 0 error...

    I did this test for each criteria by themselves with the budget range and the only criteria that didn't equal to 0 was this section, for the region:
    AnnualBudget! A10:A236, sheet2!B2

    This actually showed the actual budget value, so it displays the total amt with both true and false for recurring. however, when I try to add the recurring is true criteria, it goes back to 0 again.

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: sumifs function returning 0 error...

    Are you using a formula to return "TRUE" or "FALSE" in column B? which formula are you using? try returning TRUE or FALSE without quotes

  7. #7
    Registered User
    Join Date
    04-06-2012
    Location
    Seattle, Wa
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: sumifs function returning 0 error...

    Already tried that and still is 0. I tried placing 1 and 0 in place of true and false and ruled that option out too. Still got 0. this is why I am stumped. I played around and tried with and without quotations, the rearranging of criteria and so forth just to see if there was a difference. there wasn't. anything else I might be missing?
    Last edited by courage; 04-09-2012 at 03:32 PM.

  8. #8
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: sumifs function returning 0 error...

    Running out of options now, can you post the sheet or a sample from it?

  9. #9
    Registered User
    Join Date
    04-06-2012
    Location
    Seattle, Wa
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: sumifs function returning 0 error...

    I am wondering...I just retried the formula without the true or false criteria and another region, but this time I got the right annual budget # for that region and subregion. however, it is the sum of the true and false for that region and subregion. does sumifs function have an issue with the logical criteria of true and false? I thought I would have worked; it's a criteria that it has to met not the numberic value displayed.
    Last edited by courage; 04-09-2012 at 04:20 PM.

  10. #10
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: sumifs function returning 0 error...

    Try This

    =SUMIFS(AnnualBudget!E10:E236,AnnualBudget! B10:B236, TRUE, AnnualBudget! A10:A236, sheet2!B2, AnnualBudget! D10:D236, sheet2!B3)

+ 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