To calculate the sum of multiplication in Excel, you can use the SUMPRODUCT
function. This function multiplies corresponding components in the given arrays and returns the sum of those products.
Using SUMPRODUCT
The SUMPRODUCT
function is designed specifically for this purpose. It simplifies the process of multiplying corresponding values across multiple columns or ranges and then summing the results.
Syntax
The basic syntax is:
=SUMPRODUCT(array1, [array2], [array3], ...)
Where array1
, array2
, array3
, etc., are the ranges of cells you want to multiply and then sum.
Example
Based on the provided reference, let's say you have two columns, C and D, with numerical values. To multiply each cell in column C by its corresponding cell in column D and then sum all the resulting products, you would use the following formula:
=SUMPRODUCT(C2:C5,D2:D5)
This formula will multiply C2
by D2
, C3
by D3
, C4
by D4
, and C5
by D5
. Finally, it will add up all of these products to give you a single result.
Step-by-Step
- Identify your data: Determine which columns or ranges contain the numbers you want to multiply.
- Enter the formula: In an empty cell, type
=SUMPRODUCT(
, followed by the cell ranges you want to multiply, separated by commas. - Press Enter: Excel will calculate the sum of the products and display the result in the cell where you entered the formula.
Example Table
Column C | Column D |
---|---|
1 | 2 |
3 | 4 |
5 | 6 |
7 | 8 |
Using the formula =SUMPRODUCT(C2:C5,D2:D5)
with the data in the table above would perform the following calculations:
(1 2) + (3 4) + (5 6) + (7 8) = 2 + 12 + 30 + 56 = 100
Therefore, the result displayed in the cell would be 100.