Spreadsheet Formulas and Your Grades
Learn cells, ranges and formulas, use SUM, AVERAGE and IF, copy formulas with relative and absolute references, and calculate a weighted grade.
Welcome back!
Step 1 of 14Learn
A grid that calculates
A spreadsheet, such as Google Sheets or Microsoft Excel, is a grid of cells. Columns are labeled with letters (A, B, C) and rows with numbers (1, 2, 3), so every cell has an address: B3 is column B, row 3.
Cells can hold text, numbers or formulas. A formula always starts with an equals sign and calculates a result:
=B2+B3adds two cells.=B2*0.2multiplies by 0.2.=(B2+B3)/2averages two values; parentheses control the order, just as in math.
The magic is that formulas update automatically. Change a test score in B2 and every total, average and chart that depends on it recalculates instantly.
A range is a rectangle of cells written with a colon: B2:B6 means B2 through B6. Ranges feed functions, built-in formulas with names:
| Function | What it does | Example |
|---|---|---|
| SUM | adds | =SUM(B2:B6) |
| AVERAGE | mean | =AVERAGE(B2:B6) |
| MAX / MIN | largest / smallest | =MAX(B2:B6) |
| COUNT | counts cells with numbers | =COUNT(B2:B6) |
| IF | chooses based on a test | =IF(B2>=70,"Pass","Retry") |
The most common beginner mistake is typing a formula without the equals sign. The spreadsheet then treats SUM(B2:B6) as plain text and just displays it.
Step 2 of 14Practice · Work it out
Cells B2 to B5 contain the quiz scores 72, 85, 90 and 81. What does =AVERAGE(B2:B5) return?
Step 3 of 14Learn
Copying formulas the smart way
Suppose column B holds test scores and column C holds homework scores for 30 students, and you want each student's total in column D. You don't type 30 formulas. Type =B2+C2 in D2, then drag the small square at the cell's corner (the fill handle) down to D31.
The spreadsheet adjusts the formula for each row: D3 becomes =B3+C3, D4 becomes =B4+C4, and so on. These are relative references: they describe a position relative to the formula's cell ("the two cells to my left"), so they shift when copied.
Sometimes you need a reference that doesn't move. Imagine every score should be converted to a percentage of a maximum stored in one cell, say F1. If you write =B2/F1 and copy it down, the next row becomes =B3/F2, pointing at an empty cell, and you get errors like #DIV/0! (division by zero).
The fix is an absolute reference with dollar signs: =B2/$F$1. The dollar signs lock the column and row, so every copied formula still divides by F1. In most spreadsheets you can press F4 while the cursor is on a reference to add the dollar signs.
Rule of thumb: references to "this row's data" stay relative; references to a single setting, rate or maximum used by every row become absolute.
Step 4 of 14Compare
Relative vs absolute references when you copy a formula
| Aspect | You type in E2 | Copied down to E3 | Copied right to F2 |
|---|---|---|---|
| Relative: =C2*H1 | =C2*H1 | =C3*H2 | =D2*I1 |
| Absolute: =C2*$H$1 | =C2*$H$1 | =C3*$H$1 | =D2*$H$1 |
| Row locked: =C2*H$1 | =C2*H$1 | =C3*H$1 | =D2*I$1 |
| Column locked: =C2*$H1 | =C2*$H1 | =C3*$H2 | =D2*$H1 |
Step 5 of 14Practice · Choose one
Cell E2 contains =C2*$H$1. If you copy it down to E5, what formula will E5 contain?
Step 6 of 14Learn
Calculating a weighted grade
Many classes don't count every assignment equally. A syllabus might say: tests 50%, homework 20%, projects 30%. That's a weighted average, where each category's average is multiplied by its weight.
Suppose your averages are: tests 78, homework 95, projects 88. Your grade is:
(78 × 0.50) + (95 × 0.20) + (88 × 0.30) = 39 + 19 + 26.4 = 84.4
Notice that this is not the simple average of 78, 95 and 88, which would be 87. The test category counts more than twice as much as homework, so a weak test average pulls the grade down more.
In a spreadsheet, put the category averages in B2:B4 and the weights in C2:C4, then use =B2*C2+B3*C3+B4*C4, or the shortcut =SUMPRODUCT(B2:B4,C2:C4). Make sure the weights add up to 100% (or 1.0); if they don't, the result is meaningless.
This is also how you can answer the question every student asks before a final: "What do I need to get?" Change the numbers and watch the result. It's far more reliable than guessing, and much less stressful than finding out after report cards arrive.
Step 7 of 14Try the calculator
Weighted grade calculator
Enter your category averages and the weights from your syllabus. The weights should add up to 100.
- Weighted grade
- 84.4
- Simple average (for comparison)
- 87
- Total of weights (should be 100)
- 100 %
Step 8 of 14Explore
How much can the final exam move your grade?
Your grade before the final is c and the final counts for w of the course. The line shows your course grade (y) for every possible final exam score (x). A steeper line means the final matters more.
- Final score needed for an 85 overall (over 100 means out of reach)
- 89
- Course grade if you score 0 on the final
- 67.2
Step 9 of 14Practice · Work it out
A class weights tests at 60% and homework at 40%. Ming has a test average of 70 and a homework average of 100. What is her weighted grade?
Step 10 of 14Learn
From numbers to charts
A column of 30 numbers is hard to read; a chart shows the pattern in a second. Select your data, including the header row, and choose Insert, then Chart. The key is picking the right kind of chart for your question:
- Column or bar chart: comparing amounts across categories, such as votes for each candidate or hours spent per subject.
- Line chart: showing change over time, such as temperatures through a month or your quiz scores across the semester.
- Pie chart: showing parts of one whole that add up to 100%, such as how you spend a day. Use it only with a few slices; more than five or six becomes unreadable.
- Scatter plot: showing the relationship between two numeric variables, such as hours studied versus test score.
Every chart needs a title, labeled axes with units, and a legend if there's more than one data series.
Two more features turn a spreadsheet into a real tool. Sort puts rows in order by a column (select the whole data range first, or rows get scrambled). Filter temporarily hides rows that don't match a condition, such as showing only the labs scored below 70, without deleting anything.
Step 11 of 14Flashcards
Which chart answers which question?
Tap a card to flip it.
Step 12 of 14Practice · Match the pairs
Match each question to the best chart type.
Tap an answer, then tap the place where it belongs (or drag it there).
- How did my reading speed change each week this semester?
- Which club has the most members?
- What share of my day goes to sleep, school and other activities?
- Do students who sleep more score higher on tests?
Step 13 of 14Note
Step 14 of 14Practice · True or false
Typing SUM(B2:B10) into a cell without an equals sign will display the total of those cells.
Lesson complete!