ShareYourGroupShareYourGroupExcel Formulas

Math functions

SUMIFS function in Excel

SUMIFS adds up the cells that meet several conditions at once.

SUMIFS is SUMIF with room for more conditions. A row is included only when it passes every condition, so the conditions are joined by "and". It is the workhorse of monthly reports: sales for one region in one month, expenses for one head in one quarter.

Syntax

=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)
ArgumentWhat it is
sum_rangeThe cells to add. Note that it comes first here, unlike in SUMIF.
criteria_range1The first range to test.
criteria1The condition for the first range.
criteria_range2, criteria2, ...More pairs of range and condition. A row is added only if it passes all of them.

Examples

Each result below is what Excel itself showed for the formula on the sample sheet.

Sample sheet: Twelve sales made by four salespeople in three regions.
ABCDEF
1DateSalespersonRegionProductUnitsAmount
205-Jan-2026AshaNorthNotebook201200
312-Jan-2026RaviSouthPen50500
420-Jan-2026MeenaNorthBag43000
502-Feb-2026AshaEastPen30300
614-Feb-2026KabirSouthNotebook15900
728-Feb-2026RaviNorthBag21500
803-Mar-2026MeenaEastNotebook402400
915-Mar-2026AshaNorthBag32250
1022-Mar-2026KabirSouthPen60600
1101-Apr-2026RaviEastNotebook251500
1218-Apr-2026MeenaNorthPen80800
1306-May-2026AshaSouthBag53750

The order of the arguments

In SUMIF the range to add comes last. In SUMIFS it comes first. The pairs of "where to look" and "what to look for" follow. This difference is the most common reason a SUMIF that worked gives nonsense when a condition is added.

Many people use SUMIFS all the time, even for a single condition, so that there is only one order to remember.

Conditions

Each condition is written exactly as in SUMIF: text in quotation marks, comparison signs inside the quotation marks, cell references joined on with &, wildcards * and ? for part of a text.

All the ranges must be the same size and shape. If one is a row longer than the others, the result is #VALUE!.

A month, a quarter, a year

Dates are the main reason to use two conditions on the same column. The dependable pattern is "on or after the first day, and before the first day of the next period":

=SUMIFS(amounts, dates, ">="&start, dates, "<"&next_start)

With the start date in a cell, EDATE gives the next month: "<"&EDATE(H1,1). Writing it this way is correct even if the dates carry a time of day, which "<="&last_day is not.

A summary table

Put regions down the side and products across the top, and one formula fills the grid:

=SUMIFS($F$2:$F$13,$C$2:$C$13,$H2,$D$2:$D$13,I$1)

The data ranges are fully fixed. $H2 fixes the column so that the formula always reads the region from column H. I$1 fixes the row so that it always reads the product from row 1. The guide on cell references explains this mixed style.

Either of two values

Conditions in SUMIFS are always "and". For "North or East", add two SUMIFS together, or give a list in curly brackets and wrap the whole thing in SUM: =SUM(SUMIFS(F2:F13,C2:C13,{"North","East"})).

When SUMIFS is not enough

SUMIFS needs real ranges and simple conditions. It cannot test "the month of the date is 3" or "the first letter is A" without a helper column. For that, SUMPRODUCT or FILTER inside SUM is more flexible.

Common mistakes

In Google Sheets

SUMIFS is the same in Google Sheets.

Related functions

Every result on this page was calculated in Microsoft Excel (version 16.0, build 20326) on 12 November 2026, not typed by hand.

This is an independent help site. It is not connected with or approved by Microsoft. Excel and Microsoft 365 are trademarks of Microsoft Corporation, named here only to say which program a formula is for. The people and figures in the sample sheets are made up.