SUMIFS practice in Google Sheets

SUMIFS takes the sum range first and then pairs of range and criterion, in Google Sheets exactly as in Excel. Every condition must hold for a row to count.

Start the first exercise

How SUMIFS works

SUMIFS adds up the numbers in the rows where every one of your conditions is met. You give it the sum range first, then a pair for each condition: a range to test and a criterion. It works the same in Excel and Google Sheets.

=SUMIFS(C2:C9,A2:A9,"North",B2:B9,"Shoes") totals the sales of shoes in the North region. For a period, use the date column twice: ">="&F1 and "<="&F2 give you the dates from F1 to F2, both days included. To leave one value out, use "<>Returned" as the criterion.

Mind the order: the sum range comes first in SUMIFS but last in SUMIF, so a formula copied from one to the other breaks quietly. All the conditions must be true at the same time. The exercises below cover two conditions, conditions taken from cells, sums between two dates, and leaving one value out.

  1. 1SUMIFS with two conditionsIn E2, use SUMIFS to total the Sales of Shoes in the North region.
  2. 2SUMIFS with the conditions in cellsPremiumIn G2, use SUMIFS to total the Sales for the region in E2 and the product in F2. Point at the cells instead of typing the words.
  3. 3SUMIFS between two datesPremiumIn F3, total the amounts of the orders dated from F1 to F2, both days included. Give SUMIFS the date column twice: ">="&F1 and "<="&F2.
  4. 4SUMIFS that leaves one value outPremiumIn F1, total the North orders that were not returned. Give SUMIFS two conditions: the region "North" and the status "<>Returned".

Functions in this topic

Questions

What is the difference between SUMIF and SUMIFS in Google Sheets?

SUMIFS can check several conditions, and it takes the sum range first. SUMIF checks one condition and takes the sum range last. Both work as in Excel.

How do I sum between two dates with SUMIFS in Google Sheets?

Use the date column twice, as in =SUMIFS(C2:C9,A2:A9,">="&F1,A2:A9,"<="&F2). Both limits must be real dates, not text. Dates that sit at the left edge of a cell are usually text, and SUMIFS will not match them. Retype them or reformat them as dates.