Excel Grade Formula: AVERAGE, SUM & Weighted

Formulas & functions · Updated November 23, 2026

The most direct formula for calculating grades in Excel is =AVERAGE(B2:B10) when all assignments carry equal weight, or =SUMPRODUCT(weights, scores)/SUM(weights) for weighted grades. For example, if test scores are in B2:B10, =AVERAGE(B2:B10) returns 85.5 if the scores are 80, 90, 85, 88, 92, 78, 84, 86, 87.

Basic Average for Equal-Weight Grades

When every assignment, quiz, or exam counts the same, the AVERAGE function is the simplest solution. It ignores empty cells and text, so blank rows won’t skew results.

  • With scores in C2:C20, type =AVERAGE(C2:C20) in any empty cell.
  • For a quick view without a formula, select the range and check the status bar at the bottom—it shows the average automatically.
  • If you need to exclude zeros (e.g., unsubmitted work), use =AVERAGEIF(C2:C20,">0").

For a class of 15 students, put each student’s scores in a row and use =AVERAGE(B2:F2) in column G, then copy down. This gives each student’s overall grade assuming all five assignments weigh equally.

Weighted Grades with SUMPRODUCT

Most real courses weight categories: homework 20%, quizzes 30%, midterm 20%, final 30%. The SUMPRODUCT formula handles this cleanly.

Assume category scores are in B2:E2 (homework, quizzes, midterm, final) and weights are in B1:E1 as decimals (0.2, 0.3, 0.2, 0.3). The formula is:

=SUMPRODUCT(B2:E2, $B$1:$E$1)

If B2=90, C2=85, D2=78, E2=92, the result is (90*0.2)+(85*0.3)+(78*0.2)+(92*0.3) = 18 + 25.5 + 15.6 + 27.6 = 86.7. The dollar signs lock the weight row when you copy the formula down for other students.

If weights are entered as whole numbers (20, 30, 20, 30), divide by their sum: =SUMPRODUCT(B2:E2, $B$1:$E$1)/SUM($B$1:$E$1).

Using SUM for Points-Based Grades

Some courses use total points: a student earns 450 out of 500 possible points. The formula is simple:

=SUM(B2:B10)/SUM($B$1:$J$1)

Here B2:B10 holds the student’s points per assignment, and B1:J1 holds the maximum points for each assignment. If the student earned 450 and the total possible is 500, the result is 0.9, which you can format as 90% using Home > Number > Percent Style.

For multiple students, put each student’s points in a row and use =SUM(B2:J2)/SUM($B$1:$J$1) in column K, copying down. The absolute references keep the max points row constant.

Letter Grades with IF or IFS

Once you have a numeric grade (percentage), you can convert it to a letter grade. The IFS function (Excel 2019 and later) is the cleanest:

=IFS(F2>=90,"A",F2>=80,"B",F2>=70,"C",F2>=60,"D",TRUE,"F")

If F2 is 85, this returns “B”. The TRUE at the end acts as a catch-all for anything below 60. For older Excel versions, use nested IFs:

=IF(F2>=90,"A",IF(F2>=80,"B",IF(F2>=70,"C",IF(F2>=60,"D","F"))))

To add plus/minus grades, extend the thresholds: =IFS(F2>=97,"A+",F2>=93,"A",F2>=90,"A-",F2>=87,"B+",...) —just list every boundary in order.

Handling Missing Assignments and Extra Credit

Missing assignments often cause confusion. If a student has a blank cell, AVERAGE ignores it, which may unfairly raise the grade. To count missing work as zero, use =SUM(B2:J2)/COUNTA($B$1:$J$1) where the denominator counts all possible assignments. Alternatively, fill blank cells with 0 first.

For extra credit, add a separate column and include it in the SUM but not in the denominator. For example, if extra credit is in K2, use =(SUM(B2:J2)+K2)/SUM($B$1:$J$1).

Common Errors and Fixes

  • #DIV/0! – The formula divides by zero or an empty range. Check that the denominator isn’t empty or zero.
  • Wrong results with text – AVERAGE ignores text, but SUM treats text as zero if in a range. Ensure scores are numbers, not text like “85%” (use 85 and format as percent).
  • Weights not summing to 1 – If you use SUMPRODUCT with decimals, verify the weights add to 1. If not, divide by SUM(weights).
  • Copying formulas – Relative references change when copied. Use $ to lock rows or columns that should stay fixed.

Alternative: PivotTables for Class Averages

If you have a large dataset with student names, assignment types, and scores, a PivotTable can summarize averages by student or by assignment without writing formulas. Select your data, go to Insert > PivotTable, drag “Student” to Rows, “Assignment” to Columns, and “Score” to Values (set to Average). This is useful for spotting trends but less flexible for weighted grades.

Frequently Asked Questions

How do I calculate a final grade with percentages in Excel?

Enter each category percentage as a decimal (e.g., 0.2 for 20%) in a row, then use =SUMPRODUCT(scores_range, weights_range). Make sure the weights sum to 1. For example, with scores in B2:D2 and weights in B1:D1, =SUMPRODUCT(B2:D2,B1:D1) gives the weighted average.

Can Excel round grades automatically?

Yes. Wrap your formula in ROUND: =ROUND(AVERAGE(B2:B10),0) rounds to the nearest whole number. Use 1 or 2 for decimal places. To round up always, use ROUNDUP; to round down, ROUNDDOWN.

How do I assign letter grades based on a curve?

Use a lookup table with VLOOKUP or XLOOKUP. Create a table with thresholds (e.g., 90, 80, 70) and letters (A, B, C). Then =VLOOKUP(F2, $A$1:$B$4, 2, TRUE) finds the correct letter. The TRUE argument requires the thresholds to be sorted ascending.

What if my grades are in different sheets?

Reference other sheets directly: =AVERAGE(Sheet2!B2:B10, Sheet3!B2:B10) or use a 3D reference if the ranges are identical: =AVERAGE(Sheet2:Sheet4!B2:B10). This works when the sheets are adjacent in the tab order.

Is there a way to calculate GPA from letter grades?

Yes. Convert each letter to grade points using a lookup table (A=4, B=3, etc.), then average the points. For weighted GPA, multiply each point value by credit hours and divide by total credits: =SUMPRODUCT(points, credits)/SUM(credits).

Remember to always double-check your formulas with a manual calculation for a few students. Excel is powerful, but a single wrong cell reference can silently produce incorrect grades.

Related

Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.

More in Formulas & functions

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.