---
title: "SUMIFS in Google Sheets: syntax and examples | PracticeExcel"
description: "Adds the cells that meet every one of several conditions. The sum range comes first. With examples and exercises in Google Sheets."
canonical_url: "https://practiceexcelonline.com/sheets/functions/sumifs"
locale: en
meta:
  "og:description": "Adds the cells that meet every one of several conditions. The sum range comes first. With examples and exercises in Google Sheets."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~U1VNSUZTIGluIEdvb2dsZSBTaGVldHM6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_Adds%2Bthe%2Bcells%2Bthat%2Bmeet%2Bevery%2Bone%2Bof%2Bseveral%2Bconditions.%2BThe%2Bsum%2Brange%2Bcomes%2Bfirst.%2BWith%2Bexamples%2Band%2Bexercises%2Bin%2BGoogle%2BSheets.%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_~U1VNSUZTKHN1bV9yYW5nZSwgY3JpdGVyaWFfcmFuZ2UxLCBjcml0ZXJpYTEsIFtjcml0ZXJpYV9yYW5nZTIsIGNyaXRlcmlhMl0sIC4uLik%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL3N1bWlmcyI%2Cs_YmKD1iqWCFqsRU0f.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "SUMIFS in Google Sheets: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~U1VNSUZTIGluIEdvb2dsZSBTaGVldHM6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_Adds%2Bthe%2Bcells%2Bthat%2Bmeet%2Bevery%2Bone%2Bof%2Bseveral%2Bconditions.%2BThe%2Bsum%2Brange%2Bcomes%2Bfirst.%2BWith%2Bexamples%2Band%2Bexercises%2Bin%2BGoogle%2BSheets.%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_~U1VNSUZTKHN1bV9yYW5nZSwgY3JpdGVyaWFfcmFuZ2UxLCBjcml0ZXJpYTEsIFtjcml0ZXJpYV9yYW5nZTIsIGNyaXRlcmlhMl0sIC4uLik%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL3N1bWlmcyI%2Cs_YmKD1iqWCFqsRU0f.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **SUMIFS in Google Sheets**

Adds the cells that meet every one of several conditions. The sum range comes first.

=

SUMIFS(

## **In Google Sheets**

SUMIFS takes the same arguments in Google Sheets: the sum range first, then pairs of range and criterion.

## **Syntax**

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

<dl><dt>**sum_range **</dt>
<dd>The cells to add.</dd>
<dt>**criteria_range1 **</dt>
<dd>The cells the first condition is checked against.</dd>
<dt>**criteria1 **</dt>
<dd>The first condition.</dd>
<dt>**criteria_range2, criteria2 **(optional)</dt>
<dd>More range and condition pairs, up to 127.</dd></dl>

## **Examples**

E1`=SUMIFS(<sup>1</sup>C2:C6,<sup>2</sup>A2:A6,<sup>3</sup>"North",<sup>4</sup>B2:B6,<sup>5</sup>"Shoes")`

|  | A | B | C | D | E |
| --- | --- | --- | --- | --- | --- |
| 1 | Region | Product | Sales |  | **920** |
| 2 | North | Shoes | 500 |  | |
| 3 | South | Shoes | 300 |  | |
| 4 | North | Bags | 250 |  | |
| 5 | North | Shoes | 420 |  | |
| 6 | South | Bags | 180 |  | |

**In plain words:** Add up <sup>1</sup>the sales in C2:C6 on the rows where <sup>2</sup>the region in A2:A6 is <sup>3</sup>North and <sup>4</sup>the product in B2:B6 is <sup>5</sup>Shoes.

E1=SUMIFS(C2:C6,A2:A6,"South",C2:C6,">200")

|  | A | B | C | D | E |
| --- | --- | --- | --- | --- | --- |
| 1 | Region | Product | Sales |  | **300** |
| 2 | North | Shoes | 500 |  | |
| 3 | South | Shoes | 300 |  | |
| 4 | North | Bags | 250 |  | |
| 5 | North | Shoes | 420 |  | |
| 6 | South | Bags | 180 |  | |

## **Practice SUMIFS**

- [**1****SUMIFS with two conditions**→](https://practiceexcelonline.com/sheets/practice/sumifs/sumifs-two-conditions)
- [**2****SUMIFS with the conditions in cells**→](https://practiceexcelonline.com/sheets/practice/sumifs/sumifs-criteria-from-cells)
- [**3****SUMIFS between two dates**→](https://practiceexcelonline.com/sheets/practice/sumifs/sumifs-between-two-dates)
- [**4****SUMIFS that leaves one value out**→](https://practiceexcelonline.com/sheets/practice/sumifs/sumifs-not-equal)

## **Related functions**

- [**SUMIF**](https://practiceexcelonline.com/sheets/functions/sumif)
- [**COUNTIFS**](https://practiceexcelonline.com/sheets/functions/countifs)
- [**AVERAGEIFS**](https://practiceexcelonline.com/functions/averageifs)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":{"@id":"https://excelopgaver.dk/#website"}},{"@id":"https://practiceexcelonline.com/sheets/functions/sumifs#webpage","@type":"WebPage","description":"Adds the cells that meet every one of several conditions. The sum range comes first. With examples and exercises in Google Sheets.","name":"SUMIFS in Google Sheets: syntax and examples","url":"https://practiceexcelonline.com/sheets/functions/sumifs","breadcrumb":{"@id":"https://practiceexcelonline.com/sheets/functions/sumifs#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/sheets/functions/sumifs"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/sheets/functions/sumifs#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Google Sheets practice exercises","item":"https://practiceexcelonline.com/sheets","position":2},{"@type":"ListItem","name":"SUMIFS in Google Sheets: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/sheets/functions/sumifs#article","description":"Adds the cells that meet every one of several conditions. The sum range comes first. With examples and exercises in Google Sheets.","headline":"SUMIFS in Google Sheets: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~U1VNSUZTIGluIEdvb2dsZSBTaGVldHM6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_Adds%2Bthe%2Bcells%2Bthat%2Bmeet%2Bevery%2Bone%2Bof%2Bseveral%2Bconditions.%2BThe%2Bsum%2Brange%2Bcomes%2Bfirst.%2BWith%2Bexamples%2Band%2Bexercises%2Bin%2BGoogle%2BSheets.%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_~U1VNSUZTKHN1bV9yYW5nZSwgY3JpdGVyaWFfcmFuZ2UxLCBjcml0ZXJpYTEsIFtjcml0ZXJpYV9yYW5nZTIsIGNyaXRlcmlhMl0sIC4uLik%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL3N1bWlmcyI%2Cs_YmKD1iqWCFqsRU0f.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/sheets/functions/sumifs#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/sheets/functions/sumifs#webpage"},"publisher":{"@id":"https://practiceexcelonline.com/#identity"}},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"},{"@id":"https://practiceexcelonline.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~U1VNSUZTIGluIEdvb2dsZSBTaGVldHM6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_Adds%2Bthe%2Bcells%2Bthat%2Bmeet%2Bevery%2Bone%2Bof%2Bseveral%2Bconditions.%2BThe%2Bsum%2Brange%2Bcomes%2Bfirst.%2BWith%2Bexamples%2Band%2Bexercises%2Bin%2BGoogle%2BSheets.%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_~U1VNSUZTKHN1bV9yYW5nZSwgY3JpdGVyaWFfcmFuZ2UxLCBjcml0ZXJpYTEsIFtjcml0ZXJpYV9yYW5nZTIsIGNyaXRlcmlhMl0sIC4uLik%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL3N1bWlmcyI%2Cs_YmKD1iqWCFqsRU0f.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~U1VNSUZTIGluIEdvb2dsZSBTaGVldHM6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_Adds%2Bthe%2Bcells%2Bthat%2Bmeet%2Bevery%2Bone%2Bof%2Bseveral%2Bconditions.%2BThe%2Bsum%2Brange%2Bcomes%2Bfirst.%2BWith%2Bexamples%2Band%2Bexercises%2Bin%2BGoogle%2BSheets.%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_~U1VNSUZTKHN1bV9yYW5nZSwgY3JpdGVyaWFfcmFuZ2UxLCBjcml0ZXJpYTEsIFtjcml0ZXJpYV9yYW5nZTIsIGNyaXRlcmlhMl0sIC4uLik%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL3N1bWlmcyI%2Cs_YmKD1iqWCFqsRU0f.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
