How to Calculate a Weighted Grade in Excel: SUMPRODUCT Formula, Examples and Fixes

If your class uses weighted categories, such as homework 15% and tests 25%, a spreadsheet is a handy way to track your grade all term. Excel can do the whole calculation with one formula, and it can also tell you what you need on the final. This guide builds a small grade sheet step by step, explains each formula, and covers the mistakes that most often give a wrong answer.

If you only need a quick answer, the free grade calculator does the same math in your browser. The spreadsheet approach is useful when you want to keep a running record or track several classes.

The weighted grade formula in plain words

A weighted grade multiplies each category average by its weight, adds the results, and divides by the total weight:

When every category is graded and the weights add up to 100%, dividing by the total weight changes nothing. It matters when some categories are still empty, which is most of the term. Our weighted grades guide explains the idea without a spreadsheet.

Step 1: Set up the sheet

Put one category per row. Column A holds the category name, column B your average in that category, and column C the weight from your syllabus. Here is the example we will use, with the final exam not taken yet:

RowA: CategoryB: AverageC: Weight
2Homework94%15%
3Quizzes82%25%
4Labs88%20%
5Midterm76%15%
6Final exam(empty)25%

Type the averages and weights with the % sign, such as 94%, and Excel stores them as decimals (0.94) and displays them as percentages. Plain numbers like 94 and 15 also work for the weighted average, but the final exam formula in Step 6 needs weights stored as percentages or decimals, so the % style is the safer habit.

Add a check cell under the weights: =SUM(C2:C6). It should show 100%. If it does not, recheck the syllabus before trusting any result.

Check your weighted grade or what you need on the final — free, in your browser.

Open the free grade calculator →

Step 2: Calculate each category average

If your teacher gives you category averages, type them in. If you only have individual scores, calculate each category on its own sheet or block of cells.

For a points-based category, divide total points earned by total points possible. With earned points in D2:D9 and possible points in E2:E9:

For example, 47 points earned out of 50 possible gives 47 ÷ 50 = 94%, the homework average in our table. Do not use =AVERAGE() on a list of percentages when the assignments are worth different numbers of points; that treats a 10-point quiz like a 100-point test. Our post on how to calculate grade percentage shows why with a worked example.

Step 3: The weighted grade formula

When every category has a score, use SUMPRODUCT. It multiplies each average by its weight and adds them all up in one step:

Step 4: Handle categories that are not graded yet

In our example the final exam is still empty. SUMPRODUCT treats an empty cell as zero, so the formula above would divide by the full 100% and effectively count the final as a zero. To divide only by the weights of categories that have a score, use SUMIF:

The "<>" criterion means "not empty", so only rows with an average contribute their weight. Here is the arithmetic Excel does:

CategoryAverage × weight
Homework94 × 0.15 = 14.1
Quizzes82 × 0.25 = 20.5
Labs88 × 0.20 = 17.6
Midterm76 × 0.15 = 11.4
Total63.6

The graded weights add up to 15% + 25% + 20% + 15% = 75%, so the current grade is 63.6 ÷ 0.75 = 84.8%. With the first formula you would see 63.6% instead, which looks like a failing grade but is only because the final has not happened yet.

Leave a category cell empty until it has a real score. Typing 0 tells Excel you scored zero.

Step 5: Turn the percentage into a letter grade

Build a small lookup table somewhere on the sheet, in ascending order, with the minimum percentage in one column and the letter in the next. Using a common U.S. scale in H2:I6:

H: MinimumI: Letter
0%F
60%D
70%C
80%B
90%A

If your weighted grade is in E2, this formula finds the letter:

The TRUE at the end tells Excel to find the largest minimum that is not above your grade, so 84.8% returns B. The dollar signs keep the table fixed if you copy the formula to other classes. Add rows for plus and minus grades if your school uses them; the letter grade scale page has a fuller chart. Always use your own school's cutoffs.

Step 6: Work out what you need on the final

With your current grade in E2, the final exam weight in C6 and your target grade in E3, the score you need on the final is:

This assumes everything except the final is already graded, which is true in our example. For a target of 85%:

For a target of 80%, you need (80 − 63.6) ÷ 0.25 = 16.4 ÷ 0.25 = 65.6%. For 90%, the answer is (90 − 63.6) ÷ 0.25 = 26.4 ÷ 0.25 = 105.6%, which is out of reach without extra credit. Our final exam grade guide and the post on what you need on your final explain how to read these results.

Optional: drop the lowest score

Some teachers drop the lowest quiz. If every quiz is worth the same number of points and the scores are in B2:B10, this gives the average without the lowest one:

If quizzes have different point values, dropping a score changes the totals differently, so follow your teacher's rule. The grade calculator FAQ covers dropped scores and extra credit.

Rounding the result

Excel keeps full precision even when it shows fewer decimals. If you want the stored value rounded, remember that a percentage is a decimal underneath: =ROUND(E2,4) keeps two decimal places of the percentage, so 0.84837 becomes 84.84%. Teachers and schools differ on whether a borderline grade like 89.5% rounds up, so do not rely on spreadsheet rounding near a cutoff.

Common mistakes

Frequently asked questions

What is the Excel formula for a weighted grade?

Use =SUMPRODUCT(B2:B6,C2:C6)/SUM(C2:C6), where column B holds category averages and column C holds weights. If some categories are not graded yet, replace the SUM with SUMIF(B2:B6,"<>",C2:C6) so only graded categories count.

Why is my weighted grade in Excel lower than expected?

Usually because an empty or zero category is being counted. SUMPRODUCT treats empty cells as zero, so dividing by all the weights pulls your grade down until every category has a score.

Should I enter weights as percentages or decimals?

Use percentages or decimals: 15% and 0.15 are the same value in Excel. Plain whole numbers like 15 work for the weighted average but not for the final exam formula, so keep one style within each column.

Does this work in Google Sheets?

Yes. SUMPRODUCT, SUMIF, VLOOKUP and ROUND work the same way in Google Sheets, so you can copy these formulas directly.

How do I calculate what I need on the final in Excel?

If everything except the final is graded, use =(target-current*(1-final_weight))/final_weight with your own cell references. A result over 100% means the target is not reachable without extra credit.

Check your weighted grade or what you need on the final — free, in your browser.

Open the free grade calculator →

Keep reading