Excel SUMPRODUCT Function

This post will guide you how to use Excel SUMPRODUCT function with syntax and examples in Microsoft excel.

Description

The Excel SUMPRODUCT function multiplies corresponding components in the given one or more arrays or ranges, and returns the sum of those products. And it returns a numeric value.

The SUMPRODUCT function is a build-in function in Microsoft Excel and it is categorized as a Math and Trigonometry Function.

The SUMPRODUCT function is available in Excel 2016, Excel 2013, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000, Excel 2011 for Mac.

Syntax

The syntax of the SUMPRODUCT function is as below:

= SUMPRODUCT (array1,[array2],…)

Where the SUMPRODUCT function arguments are:

  • array1 -This is a required argument. The first array or range that you want to multiply and then add.
  • [array2],…– This is an optional argument.  The second array or range that you want to multiply and then add.

Note:

  • The array arguments must have the same dimensions, or it will return the #VALUE! Error.
  • The SUMPRODUCT treats non-numeric items in the arrays as zeros.

Example

The below examples will show you how to use Excel SUMPRODUCT Function to return the sum of products.

#1 To get the total amount of all products in the range B1:B5, just using the following excel formula:

=SUMPRODUCT(C2:C5,D2:D5)

sumproduct function example1

2# The arrays or ranges must have the same dimensions, otherwise returns the #VALUE error. See the below picture:

sumproduct function example2

3# non-numeric items in the arrays or ranges are treated as zeros.

sumproduct function example3

Related Functions


  • Excel PRODUCT function
    The Excel PRODUCT function multiplies the numbers and returns the product. The syntax of the PRODUCT function is as below:=PRODUCT (number1, [number2], …)…

More Excel SUMPRODUCT Function Examples


  • Count Cells That Contain Specific Text
    This post will discuss that how to count the number of cells that contain specific text or certain text in a specified cells of range in Excel. How to get the total number of cells that contain certain text.……
  • Count Number of Cells with String Length greater than X
    You can create a new formula based on the SUMPRODUCT function, the N function and the LEN function to check the string length of each cell and also get the total number that the string length is greater than number 10.……
  • Highlight overlapping dates
    If you want to highlight overlapping dates, you need to find the overlapping date ranges firstly, so you need to create a formula based on SUMPRODUCT function, then type this formula into the conditional formatting format box..……
  • Find the Largest Value Based on Multiple Criteria
    Assuming that you have a list of data that you want to find the largest value based on the product “excel” and the sales region “east”. You can create a new excel formula based on the SUMPRODUCT function and the LARGE function..……
  • Sum Cell Value with Case Sensitive
    Assuming that you have a list of data in the range A1:B5, and you want to sum cell values based on “excel” product only, and ignore “Excel”. So you can create a new formula based on the SUMPRODUCT function and the EXACT function.…
  • Rank Data with Multiple Criteria
    Assuming that you want to rank data against multiple criteria for a range of cells in your worksheet. How to achieve it. You need to create a new complex formula based on the SUMPRODUCT function. .…
  • Sumif with 3D Reference for Multiple Worksheet
    If you want to sum 3d references across the different worksheet, and you need to create a complex formula based on the SUMPRODUCT function, the SUMIF function, and the INDIRECT function..….
  • Count Cells between Two Dates with Multiple Criteria
    Assuming that you have a list of data that contain two columns,  you want to count the number of product “excel” which is between two dates (from 2018/8/9-2018/10/19) in column B. You can create a new excel formula based on the SUMPRODUCT function to achieve the result.….
  • Sum Numbers from 1 to N
    Assuming that you supply a number 100, and you want to sum the numbers from 1 to 100 (1+2+3+…+100), you need to create a formula based on the SUMPRODUCT function, the ROW function and the INDIRECT function to achieve the result..….
  • Sum if Cells Begin with Specific Text or Number in Another Cells
    Assuming that you have a list of data A1:B4, and you want to sum all cells in column B if cells in column A begin with a specific text “excel” or a specific number “201”.You also can create a formula based on the SUMPRODUCT function and the LEFT functio..…
  • Count Unique Values Using Pivot Table
    You can insert a 3rd or helper column with a formula to check if the value is unique in the selected range of cells, and the create pivot table based on the 1st and 3rd column to count unique values..…
  • COUNTIF with Multiple Criteria
    To count the number based on multiple criteria in the same range or column in Excel, you can create a formula based on the SUMPRODUCT function and the COUNTIF function.….
  • Sum Every Nth Row or Column
    If you want to sum every nth rows in Excel, you can create an Excel Array formula based on the SUM function, the MOD function and the ROW function..….
  • Count Dates in Given Year/Month/Day in Excel
    You can create a formula based on the SUMPRODUCT function and the YEAR function to count dates by a give year….
  • Sum the Absolute Values
    Assuming that you have a list of data in range B1:B6 that contain negative numbers and positive numbers, and you want to sum all absolute values in these range of cells, You can use a formula based on the SUMIF function to achieve the result….

 

Related Posts

Case Sensitive Lookup with SUMPRODUCT and EXACT

Today, we will show you how to use SUMPRODUCT and EXACT to perform a case sensitive exact match. In this article, we provide a simple example to calculate bonus for employees whose names are case-sensitive. If you meet similar scenarios ...

Average per Week by Formula in Excel
Average per Week 1

We usually apply AVERAGE function or relevant functions to return average directly in Excel worksheet. But in some situations, only applying average relevant functions cannot figure out our problem. Sometimes we can create a formula with functions and mathematical operation ...

How to Sum if Equal to Many Items or A Range in Excel
How to Sum if Equal to Many Items 12

If we want to sum numbers from a range with criteria, we often select SUMIF of SUMIFS functions as the first choice to create a formula. The criteria can be a number or an array or a collection of some ...

How to Sum if Equal to X or Y in Excel
How to Sum if Equal to X or Y 19

In daily work, if we want to sum numbers from a range, and only sum the numbers which being equal to X or Y in the range, we can create a formula with Excel build-in functions to get the result. ...

How To Sum the Largest N Values in Excel

Sometimes we may want to sum the largest N numbers or top N numbers in a range. In this article, we will show you the method of “SUM the Largest N Numbers” by a simple formula which consist of SUMPRODUCT ...

How to Sum for Cell Contains Formula Only in Excel
How to Sum for Cell Contains Formula Only in Excel 9

Sometimes values are created by formulas in cells. If we want to sum values which are created by formulas from a range, but some values which are hardcoded also list in the same range, how can we filter out matched ...

How to Sum the Smallest N Values in Excel
How to Sum the Smallest N Values in Excel 15

Sometimes we may want to sum the first smallest N numbers in a range in Excel. In this article, we will show you the method of “SUM the Smallest N Numbers” by a simple formula which consist of SUMPRODUCT and ...

How to Sum by SUMPRDUCT with One Specific Criteria Multiple Columns in Excel
How to Sum by SUMPRDUCT with One Specific Criteria Multiple Columns in Excel1

Sometimes we may meet the case that to sum numbers based on one specific criteria. In this article, we will show you the method to resolve this problem by formula with the help of Excel SUMPRODUCT function. SUMPRODUCT can filter ...

How to Sum by SUMPRDUCT with Specific Criteria in Excel
How to Sum by SUMPRDUCT with Specific Criteria in Excel 15

Sometimes we may meet the case that to sum numbers based on two or more specific criteria. In this article, we will show you the method to resolve this problem by formulas with the help of Excel SUMPRODUCT function. SUMPRODUCT ...

How to Count Unique Numeric Values in a Range in Excel
count unique numberic values7

This post will guide you how to count unique numeric values in the given range in Excel 2013/2016 or Excel office 365. How do I count the unique numeric values in a list of data with some duplicate values using ...

Sidebar