<< Go back to all functions

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:

  1. Using SUMPRODUCT with two arrays:

    • Example: =SUMPRODUCT(A1:A5, B1:B5)
    • Result: The function will multiply each corresponding entry in arrays A1:A5 and B1:B5 and then sum the products.
  2. 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, and C1:C5 and then sum the products.

Use Cases and Scenarios

Consider the following scenarios where the SUMPRODUCT function can be applied effectively:

  1. Sales Analysis: Calculate the total revenue by multiplying the quantity sold and the unit price for each product.
  2. Inventory Management: Determine the total value of inventory by multiplying the quantity and the cost of each item.
  3. 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.

Related Articles