Skip to main content
← All functions

SUMIF function

Adds the cells specified by a given criteria

Sum the values in a range that meet criteria that you specify.

Syntax

SUMIF(range, criteria, [sum_range])

Square brackets indicate optional arguments.

Arguments

ArgumentRequiredMeaning
rangeYesThe range of cells that you want evaluated by criteria.A1:A20
criteriaYesThe criteria in the form of a number, expression, a cell reference, text, or a function that defines which cells will be added. Wildcard characters can be included - a question mark (?) to match any single character, an asterisk (*) to match any sequence of characters. If you want to find an actual question mark or asterisk, type a tilde (~) preceding the character.">5"
sum_rangeNoThe actual cells to add, if you want to add cells other than those specified in the range argument. If the sum_range argument is omitted, Excel adds the cells that are specified in the range argument (the same cells to which the criteria is applied).B1:B20

Try SUMIF

Total amounts from one region

=SUMIF(C2:C6,"East",A2:A6)

Total amounts from one region. The result is checked against a separately authored expected value for the supplied table. You can edit the data to explore the rule.

Inspect the current formula

Read its written arguments or observe actual operation values in a separate local calculation. This action neither applies a draft nor grades an answer.

Read the formula, one argument at a time

Explore the written function calls and their inputs. The calculation result belongs to the complete formula.

SUMIF · top-level call

=SUMIF(C2:C6,"East",A2:A6)

1 / 3 · range

The range of cells that you want evaluated by criteria.

SUMIF reference ↗

Follow the cells behind a result

Read explicit local references and helper formulas using a separate calculation. Your draft stays in this field; the worksheet and practice checks do not change.

The worksheet runs locally. Published checks apply to the supplied example only. Native Excel and Google Sheets compatibility remain unverified.

Reference and compatibility

Univer 1.0.4 / Apache-2.0. Calculation checks cover the supplied examples only. The browser worksheet does not implement every Excel feature, external service or connected data type.