SUMPRODUCT function - Microsoft Support (2024)

The SUMPRODUCTfunction returns the sum of the products of corresponding ranges or arrays. The default operation is multiplication, but addition, subtraction, and division are also possible.

In this example, we'll use SUMPRODUCT to return the total sales for a given item and size:

SUMPRODUCT function - Microsoft Support (1)

SUMPRODUCT matches all instances of Item Y/Size M and sums them, so for this example 21 plus 41 equals 62.

Syntax

To use the default operation (multiplication):

=SUMPRODUCT(array1, [array2], [array3], ...)

The SUMPRODUCT function syntax has the following arguments:

Argument

Description

array1

Required

The first array argument whose components you want to multiply and then add.

[array2], [array3],...

Optional

Array arguments 2 to 255 whose components you want to multiply and then add.

To perform other arithmetic operations

Use SUMPRODUCT as usual, but replace the commas separating the array arguments with the arithmetic operators you want (*, /, +, -). After all the operations are performed, the results are summed as usual.

Note:If you use arithmetic operators, consider enclosing your array arguments in parentheses, and using parentheses to group the array arguments to control the order of arithmetic operations.

Remarks

  • The array arguments must have the same dimensions. If they do not, SUMPRODUCT returns the #VALUE! error value. For example, =SUMPRODUCT(C2:C10,D2:D5) will return an error since the ranges aren't the same size.

  • SUMPRODUCT treats non-numeric array entries as if they were zeros.

  • For best performance, SUMPRODUCT should not be used with full column references. Consider =SUMPRODUCT(A:A,B:B), herethe function will multiply the 1,048,576 cells in column A by the1,048,576 cells in column B before adding them.

Example 1

SUMPRODUCT function - Microsoft Support (2)

To create the formula using our sample list above, type =SUMPRODUCT(C2:C5,D2:D5) and press Enter. Each cell in column C is multiplied by its corresponding cell in the same row in column D, and the results are added up. The total amount for the groceries is $78.97.

To write a longer formula that gives you the same result, type =C2*D2+C3*D3+C4*D4+C5*D5 and press Enter. After pressing Enter, the result is the same: $78.97. Cell C2 is multiplied by D2, and its result is added to the result of cell C3 times cell D3 and so on.

Example 2

The following example uses SUMPRODUCT to return the total net sales by sales agent, where we have both total sales and expenses by agent. In this case, we're using an Excel table, which uses structured references instead of standard Excel ranges. Here you'll see that the Sales, Expenses, and Agent ranges are referenced by name.

SUMPRODUCT function - Microsoft Support (3)

The formula is: =SUMPRODUCT(((Table1[Sales])+(Table1[Expenses]))*(Table1[Agent]=B8)), and it returns the sum of all sales and expenses for the agent listed in cell B8.

Example 3

In this example, we want to return the total of a particular item sold by a given region. In this case, how many cherries did the East region sell?

SUMPRODUCT function - Microsoft Support (4)

Here, the formula is: =SUMPRODUCT((B2:B9=B12)*(C2:C9=C12)*D2:D9). It first multiplies the number of occurrences of East by the number of matching occurrences of cherries. Finally, it sums the values of the corresponding rows in the Sales column. To see how Excel calculates this, select the formula cell, then go to Formulas > Evaluate Formula > Evaluate.

Need more help?

You can always ask an expert in the Excel Tech Communityor get support inCommunities.

See Also

Perform conditional calculations on ranges of cells

Sum based on multiple criteria with SUMIFS

Count based on multiple criteria with COUNTIFS

Average based on multiple criteria with AVERAGEIFS

SUMPRODUCT function - Microsoft Support (2024)
Top Articles
Crypto Remittances: How Cryptocurrency Is Transforming International Payments
Health News and Articles – Health Care News and Insights | bcbs.com
Express Pay Cspire
Coverage of the introduction of the Water (Special Measures) Bill
The Daily News Leader from Staunton, Virginia
Amtrust Bank Cd Rates
Jasmine
Weather In Moon Township 10 Days
Weather Annapolis 10 Day
UEQ - User Experience Questionnaire: UX Testing schnell und einfach
Craigslist Motorcycles Orange County Ca
Best Suv In 2010
Wicked Local Plymouth Police Log 2022
Is Grande Internet Down In My Area
Carson Municipal Code
Accuweather Mold Count
Bernie Platt, former Cherry Hill mayor and funeral home magnate, has died at 90
Wisconsin Volleyball Team Boobs Uncensored
Troy Gamefarm Prices
Macu Heloc Rate
Wood Chipper Rental Menards
Violent Night Showtimes Near Johnstown Movieplex
Ice Dodo Unblocked 76
Greyson Alexander Thorn
Nikki Catsouras: The Tragic Story Behind The Face And Body Images
Isablove
100 Million Naira In Dollars
Ff14 Laws Order
6465319333
The Syracuse Journal-Democrat from Syracuse, Nebraska
Labyrinth enchantment | PoE Wiki
Busch Gardens Wait Times
Questions answered? Ducks say so in rivalry rout
Acts 16 Nkjv
Emily Browning Fansite
Deepwoken: How To Unlock All Fighting Styles Guide - Item Level Gaming
Sechrest Davis Funeral Home High Point Nc
Jimmy John's Near Me Open
25 Hotels TRULY CLOSEST to Woollett Aquatics Center, Irvine, CA
Take Me To The Closest Ups
Dlnet Deltanet
The Jazz Scene: Queen Clarinet: Interview with Doreen Ketchens – International Clarinet Association
Www Ventusky
M Life Insider
Free Carnival-themed Google Slides & PowerPoint templates
Edict Of Force Poe
WHAT WE CAN DO | Arizona Tile
Sunset On November 5 2023
Salem witch trials - Hysteria, Accusations, Executions
Latest Posts
Article information

Author: Aracelis Kilback

Last Updated:

Views: 6072

Rating: 4.3 / 5 (44 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Aracelis Kilback

Birthday: 1994-11-22

Address: Apt. 895 30151 Green Plain, Lake Mariela, RI 98141

Phone: +5992291857476

Job: Legal Officer

Hobby: LARPing, role-playing games, Slacklining, Reading, Inline skating, Brazilian jiu-jitsu, Dance

Introduction: My name is Aracelis Kilback, I am a nice, gentle, agreeable, joyous, attractive, combative, gifted person who loves writing and wants to share my knowledge and understanding with you.