How to Calculate Grades in Excel: Step-by-Step
In this article
To calculate a grade in Excel, put each assessment in its own column, enter the scores, add a column for the maximum possible points, then use a formula such as =SUMPRODUCT(scores, weights)/SUM(weights) for a weighted total or =SUM(scores)/SUM(max_points) for a simple percentage. Wrap that result in an IFS or VLOOKUP formula to turn the number into a letter grade. The whole setup takes about ten minutes and then recalculates automatically whenever you change a score.
What You'll Need
- A spreadsheet application that supports standard formulas — Microsoft Excel (desktop, web or mobile), Google Sheets, LibreOffice Calc or Apple Numbers all work with the formulas below; the menu names differ slightly between them.
- A list of your assessments (homework, quizzes, exams, projects) and the points each is worth.
- The grading scale you want to apply (for example 90–100 = A, 80–89 = B, and so on). Check your school's or institution's official scale before you build it.
- Your scores, either already typed in or ready to enter.
Step-by-Step
- Set up the column headers. In row 1, type a header for each assessment across the columns. For example: A1 = Student, B1 = Homework, C1 = Quiz 1, D1 = Quiz 2, E1 = Midterm, F1 = Final. Keep one row per student so the formulas can be copied down.
- Add a row for maximum points. Directly under the headers, in row 2, enter the maximum points each assessment is worth (for example 100, 50, 50, 100, 200). Label this row clearly, for example by typing “Max points” in A2. Placing maximums in their own row means you can change a value later without editing every formula.
- Enter the scores. Starting in row 3, type each student's score in the matching column. Leave a cell blank only if the assessment has not been taken yet; a blank is treated as zero by most formulas, so decide in advance whether missing work should count as zero or be excluded.
- Calculate a simple percentage. In a new column (say G), enter
=SUM(B3:F3)/SUM($B$2:$F$2)for the first student. The dollar signs lock the maximum-points row so the formula still points to row 2 when you copy it down. Format the cell as a percentage using the number format button on the Home tab (the % symbol). - Or calculate a weighted total. If categories carry different weights (for example homework 20%, quizzes 30%, final 50%), put the weights in their own row, such as row 2, and the category totals in row 3. Then use
=SUMPRODUCT(B3:D3,$B$2:$D$2)/SUM($B$2:$D$2). Weights can be decimals (0.2, 0.3, 0.5) or whole numbers (20, 30, 50); dividing bySUMof the weights keeps the result on a 0–1 scale regardless of which style you use. - Convert the percentage to a letter grade. In the next column, use an
IFSformula:=IFS(G3>=0.9,"A",G3>=0.8,"B",G3>=0.7,"C",G3>=0.6,"D",TRUE,"F"). Adjust the thresholds to match your official scale. In older Excel versions withoutIFS, nestIFstatements instead:=IF(G3>=0.9,"A",IF(G3>=0.8,"B",IF(G3>=0.7,"C",IF(G3>=0.6,"D","F")))). - Copy the formulas down. Select the cells with your formulas, grab the small square at the bottom-right corner of the selection (the fill handle), and drag down to the last student row — or double-click the fill handle to fill automatically. Check one row by hand to confirm the references shifted correctly.
- Round and format. Wrap the percentage formula in
ROUNDif your institution rounds, for example=ROUND(SUM(B3:F3)/SUM($B$2:$F$2),2). Apply percentage formatting and, if you like, conditional formatting (Home > Conditional Formatting) to colour failing grades red. Menu labels vary slightly by version and platform. - Lock the sheet before sharing. If other people will open the file, protect the formula cells: select them, open Format Cells > Protection, tick Locked, then turn on sheet protection from the Review tab. Note the password somewhere safe — a forgotten password cannot be recovered.
Common Mistakes
- Forgetting the dollar signs. Without
$B$2:$F$2, copying the formula down shifts the maximum-points reference and produces wrong percentages further down the sheet. - Mixing percentage and point scales. A weight of 20 and a weight of 0.2 in the same row will skew the result. Pick one style and stay consistent.
- Treating blanks as excused. A blank cell counts as zero in
SUM. If missing work should be excluded rather than failed, useAVERAGEorAVERAGEIFon the completed items, or enter an explicit zero so the intent is visible. - Hard-coding numbers into formulas. Typing
=B3/100instead of referencing the maximum row means every future change needs a manual edit. - Wrong grade boundaries. Check whether your scale uses “90 and above” or “above 90”. The difference of one point can change a letter grade.
- Copying formulas into a filtered or sorted range. Sorting can break relative references if rows are moved without the formulas. Sort first, then fill.
Tips
- Keep the maximum-points row directly under the headers so it is visible and easy to update.
- Use a separate “Settings” area or sheet for the grade scale, then point your
VLOOKUPat it. One edit updates every student's letter grade. - Name your ranges (Formulas > Name Manager) such as
MaxPointsto make formulas easier to read. - Add a “Total points earned” column alongside the percentage so students can see both views.
- Save a blank master copy before you enter real data, so next term starts clean.
- Use
IFERRORaround your formula, for example=IFERROR(SUM(B3:F3)/SUM($B$2:$F$2),""), to hide divide-by-zero errors in empty rows.
Troubleshooting
- You see
#DIV/0!— the maximum-points row is empty or contains text. Check that every maximum cell is a number. - You see
#VALUE!— a score cell contains text such as “absent” or a stray space. Replace it with a number or leave it blank. - Percentages look wrong after copying — inspect the formula in a lower row. If the maximum row reference changed from
$B$2to$B$3, the dollar signs are missing. - Letter grades are all the same — the
IFSthresholds are probably not in descending order, or the percentage cell is formatted as text. Re-enter the percentage as a number and reformat. - Formulas show as text — the cell is formatted as Text. Change the format to General, then re-enter the formula (editing alone may not trigger a recalculation).
- Nothing recalculates — check that automatic calculation is on (Formulas > Calculation Options > Automatic), or press F9 to force a recalc.
Frequently Asked Questions
Can I calculate grades without weights?
Yes. Divide total points earned by total points possible: =SUM(B3:F3)/SUM($B$2:$F$2). This is the most common method when every assessment is worth a different number of points but none is weighted as a category.
How do I drop the lowest quiz score?
Use SUM minus MIN across the quiz columns, for example =(SUM(C3:E3)-MIN(C3:E3))/(SUM($C$2:$E$2)-MIN($C$2:$E$2)). Adjust the column letters to match your layout.
Can I use letter grades directly instead of percentages?
You can, but you need a lookup table that converts each letter to a numeric value (for example A = 4, B = 3) and then average those values. Percentages are simpler and more precise.
Does this work in Google Sheets?
Yes. SUM, SUMPRODUCT, IFS, VLOOKUP and IFERROR all exist in Google Sheets with the same syntax. Menu locations differ, but the formulas paste in unchanged.
How do I handle extra credit?
Add the extra-credit points to the earned total but not to the maximum, for example =(SUM(B3:F3)+H3)/SUM($B$2:$F$2) where H3 holds bonus points. Cap the result at 100% with MIN(1, ...) if your policy does not allow scores above full marks.
Can I calculate a final grade across multiple terms?
Yes. Put each term's percentage in its own column and weight them with SUMPRODUCT, exactly as in step 5, using the term weights instead of assessment weights.