1. Home
  2. Functions
  3. Math
  4. SUMIFS

SUMIFS function

Adds the cells that meet all of several conditions.

Syntax

=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)

Arguments

ArgumentRequiredDescription
sum_rangeRequiredThe cells to add
criteria_range1RequiredThe cells to check against the first condition
criteria1RequiredThe first condition, like ">10" or "apple"
criteria_range2, criteria2OptionalMore ranges and conditions

How to use SUMIFS

SUMIFS takes 3 required arguments and 1 optional argument, and accepts more values in the same pattern. Type =SUMIFS( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=SUMIFS(A1:A3, B1:B3, "x", C1:C3, ">1")Result 30
Data in the sheet
ABC
110x1
220y2
330x3

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.