SUMIFS: total with two conditions

Lesson 16 of 54

SUMIFS adds up numbers that meet several conditions at once, such as sales in one region and one month. The column to add goes first, then pairs of range and condition.

In cell F2, write a formula that totals the Amount for the "North" region in "Q1" only.

F2
ABCDEF
1RegionQuarterAmountNorth Q1
2NorthQ11,200
3SouthQ1900
4NorthQ21,500
5NorthQ1800
6SouthQ2700
7NorthQ1450

Type in the formula bar above and press Enter to check.

Skip

How SUMIFS works

Syntax

=SUMIFS(sum_range, criteria_range1, criterion1, [criteria_range2, criterion2], ...)
sum_range
The numbers to add. In SUMIFS it comes first.
criteria_range1
The first column to test.
criterion1
What it must match: "Paid", ">=100", or a cell.
criteria_range2, criterion2
Optional. More pairs; a row is added only if it meets them all.

Example

Invoices have Client in A, Status in B, Date in C and Amount in D (rows 2 to 300). You want what Acme paid in 2026.

=SUMIFS(D2:D300, A2:A300, "Acme", B2:B300, "Paid", C2:C300, ">="&DATE(2026,1,1))

Adds only Acme's paid invoices dated 2026 or later.

Common mistakes

  • Putting the sum range last, as in SUMIF. In SUMIFS it is the first argument.
  • Ranges of different sizes. Every range must cover the same rows, or you get #VALUE!.
  • Expecting OR between conditions. SUMIFS needs every condition; for "North or South", add two SUMIFS together.

Questions people ask

How do I sum between two dates?

Use two conditions on the date column: =SUMIFS(D:D, C:C, ">="&F1, C:C, "<="&F2).

Does SUMIFS work in Google Sheets?

Yes, with the same arguments as Excel.

Practice it above: type the formula in the formula bar and press Enter to check.