---
title: "SUMPRODUCT function in Excel: syntax and examples | PracticeExcel"
description: "How to use SUMPRODUCT in Excel and Google Sheets: quantity times price in one formula, and sums with conditions."
canonical_url: "https://practiceexcelonline.com/functions/sumproduct"
locale: en
meta:
  "og:description": "How to use SUMPRODUCT in Excel and Google Sheets: quantity times price in one formula, and sums with conditions."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~U1VNUFJPRFVDVCBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBTVU1QUk9EVUNUIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBxdWFudGl0eSB0aW1lcyBwcmljZSBpbiBvbmUgZm9ybXVsYSwgYW5kIHN1bXMgd2l0aCBjb25kaXRpb25zLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~U1VNUFJPRFVDVChhcnJheTEsIFthcnJheTJdLCAuLi4p%2Cp_Ii9mdW5jdGlvbnMvc3VtcHJvZHVjdCI%2Cs_GzObBtyWxxGpZn1B.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "SUMPRODUCT function in Excel: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~U1VNUFJPRFVDVCBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBTVU1QUk9EVUNUIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBxdWFudGl0eSB0aW1lcyBwcmljZSBpbiBvbmUgZm9ybXVsYSwgYW5kIHN1bXMgd2l0aCBjb25kaXRpb25zLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~U1VNUFJPRFVDVChhcnJheTEsIFthcnJheTJdLCAuLi4p%2Cp_Ii9mdW5jdGlvbnMvc3VtcHJvZHVjdCI%2Cs_GzObBtyWxxGpZn1B.png"
---

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

# **The SUMPRODUCT function**

Multiplies ranges row by row and adds the results. With a condition in parentheses it works as a flexible SUMIFS.

=

SUMPRODUCT(

## **Syntax**

```
SUMPRODUCT(array1, [array2], ...)
```

<dl><dt>**array1 **</dt>
<dd>The first range or array.</dd>
<dt>**array2 **(optional)</dt>
<dd>More ranges of the same size to multiply with.</dd></dl>

## **Examples**

E1`=SUMPRODUCT(<sup>1</sup>B2:B4,<sup>2</sup>C2:C4)`

|  | A | B | C | D | E |
| --- | --- | --- | --- | --- | --- |
| 1 | Item | Qty | Price |  | **450** |
| 2 | Pen | 4 | 10 |  | |
| 3 | Book | 2 | 85 |  | |
| 4 | Bag | 1 | 240 |  | |

**In plain words:** Multiply <sup>1</sup>each quantity in B2:B4 by <sup>2</sup>its price in C2:C4 and add up the results.

E1=SUMPRODUCT((B2:B4>1)\*C2:C4)

|  | A | B | C | D | E |
| --- | --- | --- | --- | --- | --- |
| 1 | Item | Qty | Price |  | **95** |
| 2 | Pen | 4 | 10 |  | |
| 3 | Book | 2 | 85 |  | |
| 4 | Bag | 1 | 240 |  | |

## **Practice SUMPRODUCT**

- [**1****Order total with SUMPRODUCT**→](https://practiceexcelonline.com/practice/sumproduct/sumproduct-order-total)
- [**2****A weighted average with SUMPRODUCT**→](https://practiceexcelonline.com/practice/sumproduct/weighted-average)
- [**3****Revenue for one region with SUMPRODUCT**→](https://practiceexcelonline.com/practice/sumproduct/sumproduct-with-condition)

## **Read the guide**

- [**Excel for finance and accounting: the skills you actually use**](https://practiceexcelonline.com/learn/excel-for-finance)

## **Related functions**

- [**SUM**](https://practiceexcelonline.com/functions/sum)
- [**SUMIFS**](https://practiceexcelonline.com/functions/sumifs)

```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/sumproduct#webpage","@type":"WebPage","description":"How to use SUMPRODUCT in Excel and Google Sheets: quantity times price in one formula, and sums with conditions.","name":"SUMPRODUCT function in Excel: syntax and examples","url":"https://practiceexcelonline.com/functions/sumproduct","breadcrumb":{"@id":"https://practiceexcelonline.com/functions/sumproduct#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/functions/sumproduct"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/functions/sumproduct#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":"SUMPRODUCT function in Excel: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/functions/sumproduct#article","description":"How to use SUMPRODUCT in Excel and Google Sheets: quantity times price in one formula, and sums with conditions.","headline":"SUMPRODUCT function in Excel: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~U1VNUFJPRFVDVCBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBTVU1QUk9EVUNUIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBxdWFudGl0eSB0aW1lcyBwcmljZSBpbiBvbmUgZm9ybXVsYSwgYW5kIHN1bXMgd2l0aCBjb25kaXRpb25zLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~U1VNUFJPRFVDVChhcnJheTEsIFthcnJheTJdLCAuLi4p%2Cp_Ii9mdW5jdGlvbnMvc3VtcHJvZHVjdCI%2Cs_GzObBtyWxxGpZn1B.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/functions/sumproduct#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/functions/sumproduct#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_~U1VNUFJPRFVDVCBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBTVU1QUk9EVUNUIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBxdWFudGl0eSB0aW1lcyBwcmljZSBpbiBvbmUgZm9ybXVsYSwgYW5kIHN1bXMgd2l0aCBjb25kaXRpb25zLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~U1VNUFJPRFVDVChhcnJheTEsIFthcnJheTJdLCAuLi4p%2Cp_Ii9mdW5jdGlvbnMvc3VtcHJvZHVjdCI%2Cs_GzObBtyWxxGpZn1B.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~U1VNUFJPRFVDVCBmdW5jdGlvbiBpbiBFeGNlbDogc3ludGF4IGFuZCBleGFtcGxlcw%2Cdescription_~SG93IHRvIHVzZSBTVU1QUk9EVUNUIGluIEV4Y2VsIGFuZCBHb29nbGUgU2hlZXRzOiBxdWFudGl0eSB0aW1lcyBwcmljZSBpbiBvbmUgZm9ybXVsYSwgYW5kIHN1bXMgd2l0aCBjb25kaXRpb25zLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~U1VNUFJPRFVDVChhcnJheTEsIFthcnJheTJdLCAuLi4p%2Cp_Ii9mdW5jdGlvbnMvc3VtcHJvZHVjdCI%2Cs_GzObBtyWxxGpZn1B.png"}]}
```

## Sitemap

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