Skip to content
Foxcolab

How to Make a Gradebook in a Spreadsheet (Template)

Build a teacher's gradebook with weighted categories, letter grades, fair handling of missing and excused work, and quiz scores pulled in from Foxcolab Forms, in an end-to-end encrypted Foxcolab Sheets spreadsheet.

7 min read
On this page12 sections

In short

A gradebook lists students in rows and assessments in columns, with a weight and a maximum score for each assessment. SUMPRODUCT turns the scores into a weighted final percentage, and LOOKUP against a grade scale gives the letter grade. Decide early how to treat missing and excused work, and how to round. Foxcolab Sheets has a Grade book template, and the spreadsheet is end-to-end encrypted.

Key takeaways

  • Put each assessment's weight and maximum points in two rows above the students, so one formula works for every row.
  • A weighted final is =SUMPRODUCT(scores/max points, weights)/SUM(weights). Check that the weights add up to 100%.
  • A blank and a zero aren't the same. Use 0 for work that's missing and a blank for work that's excused, and re-weight over the work that counts.
  • Decide how you round before term starts. A 79.96% displays as 80.0% but still looks up as a C.
  • Grades are sensitive records about children. Foxcolab Sheets encrypts them on your device, so Foxcolab can't read them.

Last reviewed 3 December 2026 by Foxcolab Team

A gradebook is a table with one row per student and one column per assessment, plus a weight and a maximum score for each assessment. A formula turns each row of scores into a weighted final percentage, and a lookup turns that into a letter grade. This guide shows how to set one up, the formulas to copy, and the decisions to make before the first assessment: how to weight categories, how to treat missing and excused work, and how to round. Then it shows the quickest way to build one: the Grade book template in Foxcolab Sheets, where your students' grades are end-to-end encrypted.

Points or weights#

There are two common ways to grade, and the gradebook should match the one you announced to students.

MethodHow it worksWatch out for
Total pointsAdd every point a student earned and divide by every point availableA 100-point exam outweighs ten 10-point quizzes, whether you meant it to or not
Weighted categoriesEach assessment or category counts for a fixed share, such as 30% for the final examThe weights must add up to 100%, and each score is first turned into a percentage

Weighted grading is easier to explain and harder to distort, so the rest of this guide uses it. The worked example has six assessments: two homework tasks and a quiz at 10% each, a midterm at 25%, a project at 15% and a final exam at 30%.

Set up the sheet#

Put the assessments across the top and give them two header rows:

RowHoldsExample
5Assessment namesHomework 1 … Final exam
6Weight10%, 10%, 10%, 25%, 15%, 30%
7Maximum points20, 20, 10, 100, 50, 100
9 onwardOne student per row, raw scores18, 15, 8, 72, 41, 80

Keep raw scores, not percentages. You type what's on the paper, and the formula does the conversion.

The formulas that do the work#

With scores in C to H, the final percentage in column I and the grade in column J:

Gradebook formulas (student in row 9)·Text
I6   Weights total     =SUM(C6:H6)                      must show 100%
I9   Final %           =SUMPRODUCT(C9:H9/$C$7:$H$7, $C$6:$H$6)/SUM($C$6:$H$6)
J9   Letter grade      =LOOKUP(I9*100, $L$6:$L$10, $M$6:$M$10)
C20  Class average     =AVERAGE(C9:C18)                 fill right

SUMPRODUCT returns "the sum of the products of corresponding ranges or arrays" (Microsoft's SUMPRODUCT reference). Here it turns each score into a fraction of its maximum, multiplies by the weight, and adds them up. Dividing by the weights total keeps the answer right even if the weights add up to slightly more or less than 100%.

For the letter grade, put the scale in L6:M10, lowest first: 0 F, 60 D, 70 C, 80 B, 90 A. LOOKUP finds the highest threshold at or below the student's percentage.

For the example student, the scores 18/20, 15/20, 8/10, 72/100, 41/50 and 80/100 give 0.9 × 10% + 0.75 × 10% + 0.8 × 10% + 0.72 × 25% + 0.82 × 15% + 0.8 × 30% = 78.8%, a C.

Missing work, excused work and rounding#

These three decisions cause most grade disputes. Make them before the term starts and write them in your syllabus.

Missing isn't excused. In the basic formula, an empty cell counts as zero. That's right for homework that was due and not handed in, and unfair for a student who was excused. Use 0 for missing and a blank for excused, then calculate over the work that counts:

Final % over completed work only·Text
=SUMPRODUCT(--(C9:H9<>""), C9:H9/$C$7:$H$7, $C$6:$H$6) / SUMPRODUCT(--(C9:H9<>""), $C$6:$H$6)

A student with 18, (excused), 8, 80, 45 and 85 gets 76.0% and a C if the blank counts as zero, but 84.4% and a B when the excused homework is left out. Same work, a different letter.

Drop the lowest quiz, if that's your policy. With four quiz scores in P1:P4, =(SUM(P1:P4)-MIN(P1:P4))/(COUNT(P1:P4)-1) averages the best three. Scores of 8, 6, 9 and 4 average 7.67 instead of 6.75.

Decide how you round. With one decimal place shown, 79.96% displays as 80.0%, but LOOKUP still sees 79.96 and returns a C. If your policy rounds to whole percentages, round before the lookup: =LOOKUP(ROUND(I9*100,0), $L$6:$L$10, $M$6:$M$10) returns a B. Either rule is defensible. Showing an 80.0% next to a C isn't.

Bring in quiz scores from Foxcolab Forms#

If you run quizzes in Foxcolab Forms, you don't need to retype the scores. Results grades the quiz on your device with your answer key, and an export of a quiz includes Score and Max score columns. Export the results as Excel (.xlsx), import the file into your gradebook as a new sheet, and look up each student:

Pull a quiz score by roll number·Text
=XLOOKUP($A9, 'Quiz 3'!$D:$D, 'Quiz 3'!$B:$B, "")

Change the column letters to match your export: the first range is the question where students typed their roll number, the second is Score. Ask for a roll number or school email rather than a name, since names get typed several ways. How to make an online quiz covers writing fair questions, and Create a quiz in Forms shows how to set answers and points.

Mistakes that cause grade disputes#

MistakeWhat happensFix
Weights that don't add up to 100%Every final is off by the same hidden factorTotal the weights in a visible cell and flag any total other than 100%
Typing percentages instead of raw scoresA 15/20 becomes "15%"Enter raw scores and let the formula divide
A blank for excused work in the basic formulaThe student is marked down for work you excusedRe-weight over completed work
Rounding only the display80.0% shows next to a CRound before the lookup, or show no decimals
Sorting one column aloneScores move to the wrong studentSort the whole table, or use a filter
Editing last term's fileOld grades get overwrittenSave a named version at the end of each term

Grades are sensitive records#

A gradebook is a file of personal data about young people. In the United States, FERPA protects student education records, which "include but are not limited to grades, transcripts, class lists, student course schedules" (U.S. Department of Education). India's Digital Personal Data Protection Act defines a child as anyone who "has not completed the age of eighteen years" and requires verifiable parental consent before a child's personal data is processed (DPDP Act, 2023, sections 2 and 9). Section 9 comes into force in May 2027 under the government’s commencement notification. Your school's own policy decides where grades may be kept.

Whatever the rules, a gradebook belongs somewhere only you and the people you choose can open it.

Make a gradebook in Foxcolab Sheets#

Foxcolab Sheets encrypts every spreadsheet on your device with its own key. Scores, names, comments and the spreadsheet's title are encrypted before they sync, so Foxcolab can't read your students' grades. Sheets and Forms come with every Foxcolab account, the free plan included.

Start from the Grade book template#

  1. Open the template

    In your Sheets library, click New, then From a template…, choose Education and select Use template on Grade book.

  2. Set your assessments

    Rename the sample assessments in the Assignment row and enter your Weight and Max points for each. The weight total turns red until it adds up to 100%.

  3. Add your class

    Replace the sample students and scores with yours. The Final column calculates the weighted percentage, and Grade looks it up in the Scale table beside the grades.

  4. Adjust the scale

    Change the From % thresholds and letters in the scale to match your school's policy. Failing grades show in red, and the finals are shaded from red to green so struggling students stand out.

The template's Final formula counts a blank as zero. If you excuse work, replace the formula in the first student's Final cell with the re-weighted version above and fill it down.

Bring in quizzes and protect the formulas#

  1. Import a quiz export

    Choose File → Import…, pick the file you exported from Forms, and choose Insert new sheet(s). Then add the XLOOKUP formula to the quiz column.

  2. Highlight students below a pass

    Select the Final column and choose Format → Conditional formatting → Add rule. Use Less than 0.6 with a red Formatting style, then click Done.

  3. Stop accidental edits

    Select the Weight, Max points and Final columns and choose Data → Protect sheets and ranges → Add a protected range or sheet, so a co-teacher can enter scores without breaking a formula.

Protection prevents mistakes inside the app. Who can open the gradebook at all is set in Share.

Share it and close the term#

Click Share and invite a co-teacher as Editor. For a head of department who needs to see results, choose Viewer, set Access expires, and switch off Viewers can download, print and copy. If you remove someone later, Sheets puts a new key in place so their old copy can't read anything added afterward.

At the end of term, choose File → Version history → Name current version, for example "Term 1 final grades", before you start the next term. To give the office a copy, File → Print → Download PDF makes the PDF on your device. PDFs and downloads aren't encrypted, so share them as a Foxcolab Drive link rather than an attachment.

Keep your class's grades where Foxcolab can't read them. Create a free account and start from the Grade book template, or see plans for more storage and your own domain. Running grades for a whole school? See Foxcolab for enterprise or talk to sales.

Frequently asked questions

How do I calculate a weighted grade in a spreadsheet?

Divide each score by its maximum points, multiply by the assessment's weight, and add the results. With scores in C9:H9, maximum points in C7:H7 and weights in C6:H6, use =SUMPRODUCT(C9:H9/$C$7:$H$7,$C$6:$H$6)/SUM($C$6:$H$6).

How do I turn a percentage into a letter grade?

Put your scale in two columns, the lowest percentage for each grade and the letter, sorted from low to high. Then use =LOOKUP(I9*100,$L$6:$L$10,$M$6:$M$10), which finds the highest threshold at or below the student's percentage.

How should a gradebook handle excused assignments?

Leave the cell blank and calculate the final over the work that counts: =SUMPRODUCT(--(C9:H9<>""),C9:H9/$C$7:$H$7,$C$6:$H$6)/SUMPRODUCT(--(C9:H9<>""),$C$6:$H$6). Enter 0 for work that was due and not handed in.

Is it safe to keep student grades in an online spreadsheet?

It depends on who holds the keys. Grades are education records, and in many schools most students are children. Foxcolab Sheets encrypts each spreadsheet on your device with its own key, and only the people you share it with can open it, so Foxcolab can't read your students' grades.

Written by

Foxcolab Team

The Foxcolab team, who build the apps and help people set them up.

More from Foxcolab

Did this guide help you get it done?

One click, no account needed.

Try the tools we write about.

Mail, files, documents, spreadsheets and meetings in one account, with no ads. The free plan is enough to start.

Jump to