Multiple Criteria SUMIF Error

  • Hi Ozgrid Member,


    I built up this formula to calculate multiple criteria cells:

    Code
    =IFERROR((U230/(SUMIFS($R$22:$DP$22,$R$15:$DP$15,U$225&"*",$R$15:$DP$15,V$225&"*",$R$15:$DP$15,W$225&"*"))), "N/A")


    asterisks represent T1, T2, and T3 to sum the data where T1W1, T1W2, T2W1, T2W2, T3W1... etc were seen. My main goal is to divide A (U230) to B (SUM parts) after SUM process.


    It does not do SUM operation and nothing calculated. What is wrong with it?


    Thank you in advance.

    [SIZE=4]"I don’t pretend we have all the answers. But the questions are certainly worth thinking about."
    Sir Arthur C. Clarke
    [/SIZE]

  • Re: Multiple Criteria SUMIFS does not work


    Your sum criteria will be using AND type logic, so it's looking for a cell in R15:DP15 where value is T1* and T2* and T3*. Since such a thing can't exist, nothing meets criteria; aka sum is 0. Instead, could be:


    =IFERROR(U230/(SUMIFS($R$22:$DP$22,$R$15:$DP$15,U$225&"*") + SUMIFS($R$22:$DP$22,$R$15:$DP$15,V$225&"*") + SUMIFS($R$22:$DP$22,$R$15:$DP$15,W$225&"*")), "N/A")


    By calculating each one separately, it's treated like an OR type logic, and you should get some results.

    Best Regards,
    Luke M
    =======
    "A little knowledge is a dangerous thing."

  • Re: Multiple Criteria SUMIFS does not work


    Hello Luke M, thank you very much it works like a charm!

    [SIZE=4]"I don’t pretend we have all the answers. But the questions are certainly worth thinking about."
    Sir Arthur C. Clarke
    [/SIZE]

  • Re: Multiple Criteria SUMIF Error


    Quote from mikerickson;776914

    Another way to write that would be


    =IFERROR(U230/SUMPRODUCT((SUMIFS($R$22:$DP$22, $R$15:$DP$15, U$225:W$255&"*")), "N/A")


    Hello Mr. Rickson,


    Actually, i tried your formula because i thought it could be more useful considering it's shorter than Ozgrid's Luke M, however, i got an error; maybe you missed a part or parenthesis?

    [SIZE=4]"I don’t pretend we have all the answers. But the questions are certainly worth thinking about."
    Sir Arthur C. Clarke
    [/SIZE]

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!