---
title: "SUMIFS function in Excel: syntax and examples | PracticeExcel"
description: "How to use SUMIFS in Excel and Google Sheets: add up rows that match several conditions. Syntax, examples and a live drill."
canonical_url: "https://practiceexcelonline.com/functions/sumifs"
locale: en
meta:
  "og:description": "How to use SUMIFS in Excel and Google Sheets: add up rows that match several conditions. Syntax, examples and a live drill."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~U1VNSUZTIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBTVU1JRlMgaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IGFkZCB1cCByb3dzIHRoYXQgbWF0Y2ggc2V2ZXJhbCBjb25kaXRpb25zLiBTeW50YXgsIGV4YW1wbGVzIGFuZCBhIGxpdmUgZHJpbGwu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~U1VNSUZTKHN1bV9yYW5nZSwgY3JpdGVyaWFfcmFuZ2UxLCBjcml0ZXJpYTEsIFtjcml0ZXJpYV9yYW5nZTIsIGNyaXRlcmlhMl0sIC4uLik%2Cp_Ii9mdW5jdGlvbnMvc3VtaWZzIg%2Cs_OWFOs75w9f3gFsMh.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "SUMIFS function in Excel: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~U1VNSUZTIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBTVU1JRlMgaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IGFkZCB1cCByb3dzIHRoYXQgbWF0Y2ggc2V2ZXJhbCBjb25kaXRpb25zLiBTeW50YXgsIGV4YW1wbGVzIGFuZCBhIGxpdmUgZHJpbGwu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~U1VNSUZTKHN1bV9yYW5nZSwgY3JpdGVyaWFfcmFuZ2UxLCBjcml0ZXJpYTEsIFtjcml0ZXJpYV9yYW5nZTIsIGNyaXRlcmlhMl0sIC4uLik%2Cp_Ii9mdW5jdGlvbnMvc3VtaWZzIg%2Cs_OWFOs75w9f3gFsMh.png"
---

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

# **The SUMIFS function**

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

=

SUMIFS(

## **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/practice/sumifs/sumifs-two-conditions)
- [**2****SUMIFS with the conditions in cells**→](https://practiceexcelonline.com/practice/sumifs/sumifs-criteria-from-cells)
- [**3****SUMIFS between two dates**→](https://practiceexcelonline.com/practice/sumifs/sumifs-between-two-dates)
- [**4****SUMIFS that leaves one value out**→](https://practiceexcelonline.com/practice/sumifs/sumifs-not-equal)

## **Read the guide**

- [**Excel for job interviews: what gets tested and how to prepare**](https://practiceexcelonline.com/learn/excel-for-job-interviews)
- [**Pivot tables explained, and the formulas that do the same job**](https://practiceexcelonline.com/learn/pivot-tables)
- [**Excel for finance and accounting: the skills you actually use**](https://practiceexcelonline.com/learn/excel-for-finance)
- [**Dates in Excel: how they work and the formulas you need**](https://practiceexcelonline.com/learn/excel-dates)

## **Questions**

<details>

<summary>

### What is the difference between SUMIF and SUMIFS?

</summary>

SUMIF takes one condition and puts the sum range last. SUMIFS takes one or more conditions and puts the sum range first.

</details>

## **Related functions**

- [**SUMIF**](https://practiceexcelonline.com/functions/sumif)
- [**COUNTIFS**](https://practiceexcelonline.com/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/functions/sumifs#webpage","description":"How to use SUMIFS in Excel and Google Sheets: add up rows that match several conditions. Syntax, examples and a live drill.","name":"SUMIFS function in Excel: syntax and examples","url":"https://practiceexcelonline.com/functions/sumifs","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/functions/sumifs#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/functions/sumifs#/schema/question/1"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/functions/sumifs"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/functions/sumifs#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Excel functions","item":"https://practiceexcelonline.com/functions","position":2},{"@type":"ListItem","name":"SUMIFS function in Excel: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/functions/sumifs#article","description":"How to use SUMIFS in Excel and Google Sheets: add up rows that match several conditions. Syntax, examples and a live drill.","headline":"SUMIFS function in Excel: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~U1VNSUZTIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBTVU1JRlMgaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IGFkZCB1cCByb3dzIHRoYXQgbWF0Y2ggc2V2ZXJhbCBjb25kaXRpb25zLiBTeW50YXgsIGV4YW1wbGVzIGFuZCBhIGxpdmUgZHJpbGwu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~U1VNSUZTKHN1bV9yYW5nZSwgY3JpdGVyaWFfcmFuZ2UxLCBjcml0ZXJpYTEsIFtjcml0ZXJpYV9yYW5nZTIsIGNyaXRlcmlhMl0sIC4uLik%2Cp_Ii9mdW5jdGlvbnMvc3VtaWZzIg%2Cs_OWFOs75w9f3gFsMh.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/functions/sumifs#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/functions/sumifs#webpage"},"publisher":{"@id":"https://practiceexcelonline.com/#identity"}},{"@id":"https://practiceexcelonline.com/functions/sumifs#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"What is the difference between SUMIF and SUMIFS?","acceptedAnswer":{"@type":"Answer","text":"SUMIF takes one condition and puts the sum range last. SUMIFS takes one or more conditions and puts the sum range first."}},{"@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_~U1VNSUZTIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBTVU1JRlMgaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IGFkZCB1cCByb3dzIHRoYXQgbWF0Y2ggc2V2ZXJhbCBjb25kaXRpb25zLiBTeW50YXgsIGV4YW1wbGVzIGFuZCBhIGxpdmUgZHJpbGwu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~U1VNSUZTKHN1bV9yYW5nZSwgY3JpdGVyaWFfcmFuZ2UxLCBjcml0ZXJpYTEsIFtjcml0ZXJpYV9yYW5nZTIsIGNyaXRlcmlhMl0sIC4uLik%2Cp_Ii9mdW5jdGlvbnMvc3VtaWZzIg%2Cs_OWFOs75w9f3gFsMh.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~U1VNSUZTIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBTVU1JRlMgaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IGFkZCB1cCByb3dzIHRoYXQgbWF0Y2ggc2V2ZXJhbCBjb25kaXRpb25zLiBTeW50YXgsIGV4YW1wbGVzIGFuZCBhIGxpdmUgZHJpbGwu%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~U1VNSUZTKHN1bV9yYW5nZSwgY3JpdGVyaWFfcmFuZ2UxLCBjcml0ZXJpYTEsIFtjcml0ZXJpYV9yYW5nZTIsIGNyaXRlcmlhMl0sIC4uLik%2Cp_Ii9mdW5jdGlvbnMvc3VtaWZzIg%2Cs_OWFOs75w9f3gFsMh.png"}]}
```

## Sitemap

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