To calculate grades in Excel, use =SUMPRODUCT(B2:B4,C2:C4)/SUM(C2:C4) for a weighted grade and a nested IF formula to convert the resulting percentage to a letter grade.
This setup is for courses where assignments carry different weights. A score of 90 on a heavily weighted exam should affect the final result more than the same score on a small quiz, and the formula handles that automatically. If every item counts equally, use AVERAGE instead.

Set up the grade worksheet
Create one worksheet with a row for each assignment, quiz, or exam. A simple layout keeps the formulas easy to read and adjust:
- Column A: Assignment name or another identifying label.
- Column B: Score, stored as a number from 0 to 100.
- Column C: The weight assigned to that score.
- Column D: Optional space for notes or a calculation check.
Enter score values as percentage-point numbers, such as 90 for 90%, and enter weights as matching numbers, such as 50. The weights do not have to total 100 because the formula divides by their actual sum. Keep each score beside its corresponding weight, and do not include headings or unrelated rows inside the formula ranges.
Calculate the weighted grade in Excel
- Enter the first score in cell B2 and place the remaining scores directly below it in B3, B4, and so on.
- Enter each matching weight in C2, C3, C4, and so on. The ranges must contain the same number of rows and correspond to the same assignments.
- Label an empty result cell as “Weighted Grade (%)”. In this example, put that label in E1 and select E2.
- Type =SUMPRODUCT(B2:B4,C2:C4)/SUM(C2:C4) and press Enter.
- Confirm that the result appears in E2. SUMPRODUCT multiplies each score by its matching weight and adds those products.
- The denominator, SUM(C2:C4), adds all selected weights. Dividing by this total produces the weighted percentage rather than a simple average.
- Change the ranges to match your worksheet. If you have more assignments, extend both B2:B4 and C2:C4 by the same number of rows.
Worked example: If B2:B4 contains 90, 80, and 70, while C2:C4 contains 50, 30, and 20, the calculation is (90×50 + 80×30 + 70×20) ÷ (50 + 30 + 20) = (4,500 + 2,400 + 1,400) ÷ 100 = 83, which is 83%.
Convert the percentage to a letter
With the weighted grade in E2, put this formula in F2 to return the letter grade:
=IF(E2>=90,"A",IF(E2>=80,"B",IF(E2>=70,"C",IF(E2>=60,"D","F"))))
| Letter | Weighted percentage |
|---|---|
| A | 90 and above |
| B | 80 to 89 |
| C | 70 to 79 |
| D | 60 to 69 |
| F | Below 60 |
These are the standard US cutoffs used by the Grade Calculator. Your school may use plus or minus grades, a different A cutoff, or a different passing mark. Check the syllabus and adjust the IF thresholds if your grading policy differs.
Match the formula to the grading rule
Choose the calculation that reflects how the course treats each item. A plain average is suitable only when all assignments have equal importance.
| Approach | When to use it | Excel formula | Main consideration |
|---|---|---|---|
| Equal-weight average | Every item counts equally | =AVERAGE(B2:B4) | It ignores differences in assignment importance. |
| Weighted percentage | Exams, quizzes, and assignments have different weights | =SUMPRODUCT(B2:B4,C2:C4)/SUM(C2:C4) | The total weight must be greater than zero, but it need not equal 100. |
| Points-to-percentage conversion | You have earned points and possible points for each item | =SUM(G2:G4)/SUM(H2:H4)*100 | Here G contains earned points and H contains possible points. |
The Grade Calculator accepts percentage scores with weights, so convert a points-based score to a percentage before entering it there. For a fuller reference outside Excel, see the weighted grade formula and cutoff guide.
Calculate a class roster in one formula
A teacher gradebook often places students in rows and assignments in columns. You can reverse the layout used for a single student and copy the same formula down the sheet.
- Put the assignment names in B1:D1 and enter their fixed weights in E2:G2.
- Enter the first student’s name in A3 and the three scores in B3:D3.
- In H3, enter =SUMPRODUCT(B3:D3,$E$2:$G$2)/SUM($E$2:$G$2). The dollar signs keep the weight row fixed when the formula is copied.
- In I3, enter the nested IF formula from the previous section, using H3 instead of E2 as the cell containing the weighted grade.
- Select H3:I3, drag the fill handle down beside the remaining students, and check a few results for consistency.
As scores are replaced or corrected, Excel recalculates the weighted grade and letter for each row. Keeping the source scores visible makes errors easier to trace than maintaining only the final grades.
Check common Excel errors
- #VALUE! from SUMPRODUCT: Check that the score and weight ranges have matching dimensions and that corresponding values are in the same rows.
- #DIV/0! from the division: The total weight is zero. At least one weight must be positive for the overall grade to be meaningful.
- A result that is too large or small: Do not mix scales. This setup uses numbers such as 90 and 50. If you enter true Excel percentages instead, use 90% and 50% in both columns, format the result as Percentage, and use 90%, 80%, 70%, and 60% in the IF formula.
- Text instead of numbers: Scores, weights, and formulas should use normal numeric cells. Check that stray apostrophes or text formatting have not turned a weight into text.
- Weights that do not total 100: The formula still normalizes them through the denominator. Put =SUM(C2:C4) in a nearby cell to inspect the total and spot a missing category.
- Formulas that change incorrectly when copied: Use absolute references such as $E$2:$G$2 for fixed weights while leaving student-specific ranges relative.
Test the sheet with one completed row before adding the rest. Recalculate after editing a score or weight, and confirm that the resulting percentage and letter agree with the course policy.
Verify the result with Grade Calculator
After building the Excel sheet, use the Grade Calculator as a separate cross-check when you want to confirm the weighted result without editing a worksheet.
- Add a row for each assignment, quiz, or exam.
- Enter the score as a percentage and enter how much the item is worth as its weight.
- Optionally enter a name so you can identify the row more easily.
- Use the Add row control for additional items or the remove button to delete a row.
- Read the weighted percentage and letter grade below the rows; the output updates instantly, and weights are normalized automatically when they do not total 100.
The supported Grade Calculator workflow is manual entry in a browser; it is not documented as an Excel plug-in, and no Excel import or workbook export is specified. It runs locally in your browser and nothing is uploaded, making it a private cross-check while the worksheet remains the place where your formulas live. Scores above 100 are accepted for extra-credit work, while individual weights must be zero or positive.
For a deeper look, see Hardness Conversion Calculator Formula: A Practical Guide.