SUMPRODUCT
The SUMPRODUCT
function in Google Sheets calculates the sum of the products of corresponding entries in two equal-sized arrays or ranges. This versatile function is useful for a wide range of applications, from analyzing sales data to performing complex calculations. Learn how to master its usage with our comprehensive guide.
Function Syntax and Parameters
Syntax: SUMPRODUCT(array1, [array2, ...])
Parameters:
array1
: The first array or range to multiply and sum.array2, ...
: [Optional] Additional arrays or ranges to multiply and sum.
Step-by-Step Tutorial
Here, we will discuss the step-by-step process to use the SUMPRODUCT
function:
-
Using
SUMPRODUCT
with two arrays:- Example:
=SUMPRODUCT(A1:A5, B1:B5)
- Result: The function will multiply each corresponding entry in arrays
A1:A5
andB1:B5
and then sum the products.
- Example:
-
Using
SUMPRODUCT
with multiple arrays:- Example:
=SUMPRODUCT(A1:A5, B1:B5, C1:C5)
- Result: The function will multiply each corresponding entry in arrays
A1:A5
,B1:B5
, andC1:C5
and then sum the products.
- Example:
Use Cases and Scenarios
Consider the following scenarios where the SUMPRODUCT
function can be applied effectively:
- Sales Analysis: Calculate the total revenue by multiplying the quantity sold and the unit price for each product.
- Inventory Management: Determine the total value of inventory by multiplying the quantity and the cost of each item.
- Portfolio Analysis: Calculate the weighted average return by multiplying the return of each asset with its corresponding weight.
Related Functions
SUM
: Calculates the sum of a range of cells or an array.PRODUCT
: Calculates the product of a range of cells or an array.