SUMIF

    Math & Trig

    Adds values in a range that meet a specified condition.

    Translations
    EnglishSUMIF
    FrenchSOMME.SI
    SpanishSUMAR.SI
    GermanSUMMEWENN
    ItalianSOMMA.SE
    PortugueseSOMASE
    DutchSOM.ALS
    PolishSUMA.JEŻELI
    RussianСУММЕСЛИ
    TurkishETOPLA
    CzechSUMIF
    HungarianSZUMHA
    SwedishSUMMA.OM
    DanishSUM.HVIS
    FinnishSUMMA.JOS
    Syntax
    SUMIF(range, criteria, [sum_range])

    Arguments

    • rangeThe range to evaluate
    • criteriaThe condition to meet
    • sum_rangeThe range to sum (defaults to range)(optional)
    Examples
    =SUMIF(A1:A10,">100")
    Sum of >100

    Sums values greater than 100

    =SUMIF(A1:A10,"Apple",B1:B10)
    Sum for Apple

    Sums B where A is 'Apple'

    =SUMIF(A:A,"*sale*",B:B)
    Sum with 'sale'

    Uses wildcard matching

    Tips & Best Practices
    • Use SUMIFS for multiple conditions
    • Wildcards * and ? work in criteria
    • Criteria is not case-sensitive
    Common Mistakes
    • Trying to squeeze a second condition into SUMIF - it only ever takes one range/criteria pair, no exceptions. SUMIFS is the door out
    • Giving sum_range a different size than range, which shifts the whole sum onto the wrong rows without any error message
    • Typing SUMIF(A1:A10,>100) without quotes around the operator - Excel won't sum a thing until it's ">100"
    Related Functions
    SUMIFSThe moment you need a second condition, this is where you're headed
    COUNTIFSame single-condition idea, just counting matches instead of summing them
    SUMPRODUCTMore flexible when your conditional sum needs logic that SUMIF simply can't express
    Frequently Asked Questions

    Can SUMIF handle more than one condition?

    No, not even close - it's built for exactly one range against exactly one criterion. The second you need a second condition, that's SUMIFS territory.

    Why is sum_range optional in SUMIF?

    Leave it out and SUMIF just sums the same range it's testing. You only need to specify it when the values you're summing live in a different column than the ones being checked.

    Can SUMIF handle dates with comparison operators?

    Yes - SUMIF(A:A,">="&DATE(2026,1,1),B:B) sums column B for every row where the date in column A falls on or after January 1, 2026.

    Need to translate a formula using SUMIF?

    Use our translator to convert your complete formula