Share via

sumifs returning 0 value

Anonymous
2016-08-30T11:44:04+00:00

I am using SUMIFS to total values in a range based on two different criteria. The formula I am using is:

=SUMIFS(daily!B200:B226,'revised daily'!B200:B226,"CF",'revised daily'!B200:B226,"2 CF") 

The answer should be 15, as there are 13 "1" that correspond to CF and 1 "2" that corresponds to 2 CF (13+2=15).

When either criteria "CF" or "2 CF" is used individually, the correct result (either 13 or 2, respectively) displays in the dialog box as I'm building the formula. However, when I put both criteria in (as shown above), the result is 0.

Can anyone help with a potential solution?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

4 answers

Sort by: Most helpful
  1. HansV 462.6K Reputation points
    2016-08-30T12:00:44+00:00

    SUMIFS sums the values for which ALL conditions are met, not the values for which ANY of the conditions is met.

    So you should use

    =SUMIFS(daily!B200:B226,'revised daily'!B200:B226,"CF") + SUMIFS(daily!B200:B226,'revised daily'!B200:B226,"2 CF")

    Was this answer helpful?

    6 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2016-08-30T13:47:13+00:00

    Mary AnnPoatsey,

    on the offhand chance that you want to sum any row that contains CF  (if the row needs to be summed, it will contain CF or 2 CF and rows that won't be summed do not contain the substring CF in that column. 

    Then you could do:

    =SUMIFS(daily!B200:B226,'revised daily'!B200:B226,"*CF")

    or using the original single condition version (SUMIF without the added last S)

    =SUMIF('revised daily'!B200:B226,"*CF",daily!B200:B226)

    Where the "*" is seen as a wild card character and the condition is essentially that the entry ends in CF.  

    --

    Regards,

    Tom Ogilvy

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2016-08-30T12:00:47+00:00

    You will have to use 2 SUMIF formulas added together (or SUMPRODUCT formula)

    =SUMIF('revised daily'!B200:B226,"CF",daily!B200:B226)+SUMIF('revised daily'!B200:B226,"2 CF",daily!B200:B226)

    This is because the criteria in a SUMIFS is "AND" not "OR" so you can't say where my value is "CF" AND it is "2 CF"

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2016-08-30T13:29:03+00:00

    Alternative to using multiple SUMIF, you may use below:

    =SUMPRODUCT((daily!$B$200:$B$226)*(NOT(ISNA(MATCH('revised daily'!$B$200:$B$226,{"CF","2 CF"},0)))))

    You may download the excel file from below link wherein this has been illustrated:

    http://globaliconnect.com/excel/Microsoft/DownloadFiles/SumIfs_ArrayCriteria_1.xlsx

    Regards,

    Amit Tandon

    Was this answer helpful?

    0 comments No comments