How to Use the SUMPRODUCT Function to Calculate Weighted Averages in Excel

If you are a teacher calculating final grades, or an investor analyzing a portfolio, the standard AVERAGE() function in Excel is completely useless. A standard average assumes every single number has the exact same value. But in the real world, a Final Exam is worth 40% of the grade, while a simple homework assignment is only worth 5%. To mathematically calculate the true score, you must multiply every single assignment by its specific weight, and then add all of those massive results together. Instead of doing this manually across 50 columns, you can use the incredibly powerful SUMPRODUCT() function.

How the SUMPRODUCT Function Works

The name tells you exactly how the engine operates. It takes two massive arrays of data. First, it multiplies the numbers across the rows (the PRODUCT). Then, it takes all of those new mathematical results and instantly adds them all together (the SUM). It performs hundreds of complex calculations in a fraction of a second, entirely inside its own memory, outputting only the final, perfect answer.

Step-by-Step Instructions

Assume you have a student’s scores. Column A lists the actual scores (e.g., 90, 85, 100). Column B lists the mathematical weight of each assignment as a decimal (e.g., 0.10, 0.50, 0.40). The total weight in Column B must equal exactly 1.0 (or 100%).

  1. Click on an empty cell (like C1) where you want the final, weighted grade to appear.
  2. Type the following formula:

=SUMPRODUCT(A1:A3, B1:B3)

  1. Press Enter.

Understanding the Calculation

The exact moment you press Enter, Excel executes the following sequence invisibly:

  1. It multiplies A1 by B1 (e.g., 90 x 0.10 = 9)
  2. It multiplies A2 by B2 (e.g., 85 x 0.50 = 42.5)
  3. It multiplies A3 by B3 (e.g., 100 x 0.40 = 40)
  4. It takes those three internal numbers (9, 42.5, 40) and adds them together, outputting the final, perfectly weighted grade of 91.5 into cell C1.

You have successfully replaced what would normally require three separate columns of manual math into a single, elegant string of code.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.